You can grab stuff off the ground and put in your inventory but it doesn't show the sprite while you do it yet.

This commit is contained in:
Zed A. Shaw 2025-06-15 00:12:46 -04:00
parent cd02507023
commit ca74b817e5
2 changed files with 31 additions and 6 deletions

View file

@ -11,7 +11,8 @@ namespace gui {
LOOTING=101,
LOOT_GRAB=102,
INV_GRAB=103,
END=104
ITEM_PICKUP=104,
END=105
};
class DNDLoot : public DeadSimpleFSM<DNDState, Event> {
@ -33,6 +34,7 @@ namespace gui {
void LOOT_GRAB(Event ev, std::any data);
void INV_GRAB(Event ev, std::any data);
void END(Event ev);
void ITEM_PICKUP(Event ev, std::any data);
void handle_mouse(Event ev, guecs::UI& gui);
void mouse_action(bool hover);
sf::Vector2f mouse_position();