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

@ -10,17 +10,20 @@ namespace gui {
class StatusUI {
public:
guecs::UI $gui;
std::map<std::string, size_t> $slots;
std::unordered_map<std::string, DinkyECS::Entity> $slots;
GameLevel $level;
ritual::UI $ritual_ui;
int $selected_slot;
DinkyECS::Entity $selected_entity;
StatusUI(GameLevel level);
void select_slot(DinkyECS::Entity ent, std::any data);
void select_ritual();
void update_level(GameLevel &level);
bool mouse(float x, float y, bool hover);
void init();
void render(sf::RenderWindow &window);
void update();
void select_slot(int slot_id, DinkyECS::Entity entity);
int place_slot(const std::string &name);
};
}