hud.show_overlay fix

This commit is contained in:
MihailRis
2024-05-10 08:57:05 +03:00
parent 76f52037b5
commit 92f185ab51
2 changed files with 31 additions and 9 deletions
+6
View File
@@ -55,6 +55,10 @@ public:
UiDocument* getDocument() const;
std::shared_ptr<gui::UINode> getNode() const;
bool isInventoryBound() const {
return mode == hud_element_mode::inventory_bound;
}
void setRemoved() {
removed = true;
}
@@ -112,6 +116,8 @@ class Hud : public util::ObjectsKeeper {
void updateElementsPosition(const Viewport& viewport);
void updateHotbarControl();
void cleanup();
void showExchangeSlot();
public:
Hud(Engine* engine, LevelFrontend* frontend, Player* player);
~Hud();