frodo-wii/dialogue_box.hh

30 lines
475 B
C++
Raw Normal View History

2009-11-29 10:29:26 +01:00
#ifndef __DIALOGUE_BOX_HH__
#define __DIALOGUE_BOX_HH__
#include "menu.hh"
class DialogueBox : public Menu
{
public:
2009-11-29 10:29:26 +01:00
DialogueBox(Font *font, const char *msgs[], int cancel = 1);
virtual void selectCallback(int which);
virtual void escapeCallback(int which);
virtual void hoverCallback(int which);
virtual int selectNext(event_t ev);
2009-11-29 10:29:26 +01:00
int selected()
{
return this->m_selected;
}
protected:
2009-11-29 10:29:26 +01:00
int m_selected;
int m_cancel;
};
#endif /* __DIALOGUE_BOX_HH__ */