frodo-wii/dialogue_box.cpp
2009-11-29 09:29:26 +00:00

20 lines
372 B
C++

#include "dialogue_box.hh"
DialogueBox::DialogueBox(Font *font, const char *msgs[], int cancel) : Menu(font)
{
this->m_selected = -1;
this->m_cancel = cancel;
this->setText(msgs, NULL);
}
void DialogueBox::selectCallback(int which)
{
this->m_selected = this->p_submenus[0].sel;
}
void DialogueBox::escapeCallback(int which)
{
this->m_selected = this->m_cancel;
}