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:
Zed A. Shaw 2025-06-05 23:31:38 -04:00
parent 5aa54d875f
commit c509162be1
8 changed files with 126 additions and 63 deletions

View file

@ -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();