The event router is working well and I can do drag-n-drop but I'll have to rethink where to use it.
This commit is contained in:
parent
5aa54d875f
commit
c509162be1
8 changed files with 126 additions and 63 deletions
|
@ -46,6 +46,7 @@ namespace gui {
|
|||
LootUI $loot_ui;
|
||||
sf::Font $font;
|
||||
gui::routing::Router $router;
|
||||
shared_ptr<sf::Sprite> $dumb_sprite = nullptr;
|
||||
|
||||
FSM();
|
||||
|
||||
|
@ -67,6 +68,8 @@ namespace gui {
|
|||
void END(Event ev);
|
||||
|
||||
void try_move(int dir, bool strafe);
|
||||
sf::Vector2f mouse_position();
|
||||
void mouse_action(bool hover);
|
||||
void handle_keyboard_mouse();
|
||||
void draw_gui();
|
||||
void render();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue