diff options
Diffstat (limited to 'include/ui_menu.hpp')
-rw-r--r-- | include/ui_menu.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ui_menu.hpp b/include/ui_menu.hpp index 5288161..cf7ffd6 100644 --- a/include/ui_menu.hpp +++ b/include/ui_menu.hpp @@ -53,6 +53,18 @@ public: void gotoParent(void); }; +class SDLReceiver : public entityx::System<SDLReceiver>, public entityx::Receiver<SDLReceiver> +{ +public: + static bool clicked; + + void configure(entityx::EventManager& ev) + { ev.subscribe<MainSDLEvent>(*this); } + void receive(const MainSDLEvent& mse); + void update(entityx::EntityManager& en, entityx::EventManager& ev, entityx::TimeDelta dt) override + { (void)en, (void)ev, (void)dt; } +}; + namespace ui { namespace menu { menuItem createButton(vec2 l, dim2 d, Color c, const char* t, MenuAction f); |