Basic loot UI mostly working. Each time you open there's a torch and you can place it visually on any slot on your character.

This commit is contained in:
Zed A. Shaw 2025-06-03 13:43:16 -04:00
parent 4b34de2109
commit 5c47a0151c
13 changed files with 123 additions and 46 deletions

View file

@ -41,7 +41,9 @@ namespace gui {
STOP_COMBAT = 12,
STAIRS_DOWN = 13,
LOOT_OPEN=14,
QUIT = 15
LOOT_SELECT=15,
LOOT_PLACE=16,
QUIT = 17
};
class FSM : public DeadSimpleFSM<State, Event> {
@ -66,6 +68,7 @@ namespace gui {
FSM();
void event(Event ev);
void event(Event ev, std::any data);
void autowalk();
void start_autowalk(double rot_speed);
@ -78,7 +81,7 @@ namespace gui {
void IN_COMBAT(Event ev);
void COMBAT_ROTATE(Event ev);
void NEXT_LEVEL(Event ev);
void LOOTING(Event ev);
void LOOTING(Event ev, std::any data);
void END(Event ev);
void try_move(int dir, bool strafe);