mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-23 03:49:26 +01:00
5f916a0dfd
menu class.
44 lines
780 B
C++
44 lines
780 B
C++
#ifndef __DIALOGUE_BOX_HH__
|
|
#define __DIALOGUE_BOX_HH__
|
|
|
|
#include "menu.hh"
|
|
#include "listener.hh"
|
|
#include "gui_view.hh"
|
|
#include "gui.hh"
|
|
|
|
class DialogueBox;
|
|
|
|
class DialogueListener : public Listener
|
|
{
|
|
public:
|
|
virtual void selectCallback(DialogueBox *which, int selected);
|
|
|
|
virtual void escapeCallback(DialogueBox *which, int selected);
|
|
};
|
|
|
|
class DialogueBox : public Menu, public ListenerManager
|
|
{
|
|
public:
|
|
DialogueBox(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);
|
|
|
|
virtual void draw(SDL_Surface *where);
|
|
|
|
int cancelIndex()
|
|
{
|
|
return this->m_cancel;
|
|
}
|
|
|
|
protected:
|
|
int m_cancel;
|
|
};
|
|
|
|
#endif /* __DIALOGUE_BOX_HH__ */
|