hud, InventoryView refactor

This commit is contained in:
MihailRis
2024-04-29 01:47:38 +03:00
parent 83e7cedffe
commit d0678c6bd7
4 changed files with 41 additions and 44 deletions
+1 -3
View File
@@ -80,10 +80,8 @@ public:
class InventoryView : public gui::Container {
const Content* content;
const ContentIndices* indices;
std::shared_ptr<Inventory> inventory;
LevelFrontend* frontend = nullptr;
std::vector<SlotView*> slots;
glm::vec2 origin {};
@@ -102,7 +100,7 @@ public:
void bind(
std::shared_ptr<Inventory> inventory,
LevelFrontend* frontend
const Content* content
);
void unbind();