mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
38 lines
643 B
C++
38 lines
643 B
C++
|
#ifndef __STATUS_BAR_HH__
|
||
|
#define __STATUS_BAR_HH__
|
||
|
|
||
|
#include "menu.hh"
|
||
|
#include "gui.hh"
|
||
|
#include "timer.hh"
|
||
|
|
||
|
#define N_STATUS_MESSAGES 8
|
||
|
|
||
|
class StatusBar : public Menu, TimeoutHandler
|
||
|
{
|
||
|
public:
|
||
|
StatusBar();
|
||
|
|
||
|
void queueMessage(const char *message);
|
||
|
|
||
|
virtual void draw(SDL_Surface *where);
|
||
|
|
||
|
virtual void hoverCallback(int which) {};
|
||
|
|
||
|
virtual void selectCallback(int which) {};
|
||
|
|
||
|
virtual void escapeCallback(int which) {};
|
||
|
|
||
|
protected:
|
||
|
virtual void timeoutCallback();
|
||
|
|
||
|
const char *dequeueMessage();
|
||
|
|
||
|
const char *messages[N_STATUS_MESSAGES];
|
||
|
const char *cur_message;
|
||
|
int head, tail;
|
||
|
int x;
|
||
|
int y;
|
||
|
};
|
||
|
|
||
|
#endif /* __DIALOGUE_BOX_HH__ */
|