Windowing System button controls, stack system, and custom functions implemented.
This commit is contained in:
+16
-4
@@ -6,13 +6,25 @@
|
||||
class Crawler;
|
||||
|
||||
class Menu{
|
||||
std::stack<Menu*>*stack=nullptr;
|
||||
friend class Crawler;
|
||||
friend class Player;
|
||||
static bool MOUSE_NAVIGATION;
|
||||
static std::map<MenuType,Menu>menus;
|
||||
std::vector<MenuButton>buttons;
|
||||
int selection=-1;
|
||||
vf2d size; //Size in tiles (24x24), every menu will be tile-based
|
||||
|
||||
public:
|
||||
Menu();
|
||||
void AddButton(vf2d pos);
|
||||
void Update(float fElapsedTime);
|
||||
Menu(vf2d size);
|
||||
void AddButton(const MenuButton&button);
|
||||
void Update(Crawler*game);
|
||||
void Draw(Crawler*game);
|
||||
static void InitializeMenus();
|
||||
static void OpenMenu(MenuType menu);
|
||||
static std::vector<Menu*>stack;
|
||||
private:
|
||||
void MenuSelect(Crawler*game);
|
||||
static const Menu InitializeTestMenu();
|
||||
static const Menu InitializeTestSubMenu();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user