Taking things from the LootUI to the StatusUI works way better now and there's a DropTarget to match the GrabSource.
This commit is contained in:
parent
842aac3127
commit
461ad03d27
8 changed files with 93 additions and 70 deletions
|
@ -10,10 +10,9 @@ namespace gui {
|
|||
class StatusUI {
|
||||
public:
|
||||
guecs::UI $gui;
|
||||
std::unordered_map<std::string, DinkyECS::Entity> $slots;
|
||||
std::unordered_map<DinkyECS::Entity, DinkyECS::Entity> $slots;
|
||||
GameLevel $level;
|
||||
ritual::UI $ritual_ui;
|
||||
int $selected_slot = -1;
|
||||
DinkyECS::Entity $selected_entity;
|
||||
|
||||
StatusUI(GameLevel level);
|
||||
|
@ -23,7 +22,7 @@ namespace gui {
|
|||
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);
|
||||
void select_slot(DinkyECS::Entity entity);
|
||||
bool place_slot(DinkyECS::Entity gui_id);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue