inventory slots fix

This commit is contained in:
MihailRis 2024-01-30 22:47:51 +03:00
parent 7434cb66e8
commit a57fba4fa4
2 changed files with 5 additions and 0 deletions

View File

@ -296,6 +296,10 @@ void SlotView::clicked(gui::GUI* gui, int button) {
}
}
void SlotView::focus(gui::GUI* gui) {
clicked(gui, 0);
}
InventoryView::InventoryView(
const Content* content,
LevelFrontend* frontend,

View File

@ -108,6 +108,7 @@ public:
bool isHighlighted() const;
virtual void clicked(gui::GUI*, int) override;
virtual void focus(gui::GUI*) override;
};
class InventoryView : public gui::Container {