Can display items picked up but man is this some garbage code. I need to rethink how inventory is stored so that it'll work with the Menu.
This commit is contained in:
parent
135d9a128b
commit
aaa6d9f9f3
3 changed files with 42 additions and 43 deletions
13
gui.hpp
13
gui.hpp
|
@ -50,14 +50,21 @@ struct UnDumbTSS {
|
|||
|
||||
class InventoryUI : public Panel {
|
||||
public:
|
||||
std::vector<string> $inventory_list;
|
||||
|
||||
int $selected = 0;
|
||||
Component $inventory_box;
|
||||
Component $inventory_table;
|
||||
string $fake_text;
|
||||
DinkyECS::World& $world;
|
||||
std::vector<std::string> $menu_list;
|
||||
std::string $item_text = "No item selected.";
|
||||
|
||||
InventoryUI(DinkyECS::World& world) :
|
||||
Panel(INVENTORY_PIXEL_X, INVENTORY_PIXEL_Y, INVENTORY_WIDTH, INVENTORY_HEIGHT),
|
||||
$world(world)
|
||||
{}
|
||||
|
||||
InventoryUI() : Panel(INVENTORY_PIXEL_X, INVENTORY_PIXEL_Y, INVENTORY_WIDTH, INVENTORY_HEIGHT) {}
|
||||
void create_render();
|
||||
void update_menu_list(components::Inventory& inventory);
|
||||
};
|
||||
|
||||
class StatusUI : public Panel {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue