1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
-
-
- #ifndef _MENU_H_
- #define _MENU_H_
-
- #include "Font.h"
-
-
- class Menu {
- public:
-
-
-
- Menu();
-
-
-
- ~Menu();
-
- void setVisible(bool visible);
-
- bool isVisible();
-
- void display();
-
- void handleKeyboard(KeyboardButton key, bool pressed);
-
- void handleMouseClick(unsigned int x, unsigned int y, KeyboardButton button, bool released);
-
- private:
-
- void loadPakFolderRecursive(const char *dir);
-
- void fillMapList();
-
- void displayMapList();
-
- void play();
-
- bool mVisible;
- unsigned long mCursor;
- unsigned long mMin;
-
- FontString mainText;
-
- bool mMapListFilled;
- bool mFirstPass;
- std::vector<char *> mMapList;
- };
-
- Menu &getMenu();
-
- #endif
|