frodo-wii/dialogue_box.hh

30 lines
475 B
C++

#ifndef __DIALOGUE_BOX_HH__
#define __DIALOGUE_BOX_HH__
#include "menu.hh"
class DialogueBox : public Menu
{
public:
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);
int selected()
{
return this->m_selected;
}
protected:
int m_selected;
int m_cancel;
};
#endif /* __DIALOGUE_BOX_HH__ */