Now have a mostly working inventory UI and can pickup items and see them. Next up, being able to use things by clicking on them.
This commit is contained in:
parent
fa6311f10c
commit
b7f49aa719
9 changed files with 84 additions and 28 deletions
|
@ -10,6 +10,12 @@ namespace gui {
|
|||
public:
|
||||
guecs::UI $gui;
|
||||
DinkyECS::Entity $log_to;
|
||||
std::array<std::string, 9> $slots = {
|
||||
"slot1", "slot2", "slot3"
|
||||
"slot4", "slot5", "slot6"
|
||||
"slot7", "slot8", "slot9"
|
||||
};
|
||||
|
||||
std::deque<std::string> $messages;
|
||||
GameLevel $level;
|
||||
StatusUI(GameLevel level);
|
||||
|
@ -17,5 +23,6 @@ namespace gui {
|
|||
void log(std::string msg);
|
||||
void render();
|
||||
void draw(sf::RenderWindow &window);
|
||||
void update();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue