This commit is contained in:
MihailRis
2024-12-24 11:31:54 +03:00
parent e153e1fbd7
commit b4abecc764
8 changed files with 29 additions and 12 deletions
+3
View File
@@ -113,6 +113,7 @@ class Hud : public util::ObjectsKeeper {
bool showContentPanel = true;
/// @brief Provide cheat controllers to the debug panel
bool allowDebugCheats = true;
bool debug = false;
/// @brief UI element will be dynamicly positioned near to inventory or in screen center
std::shared_ptr<gui::UINode> secondUI;
@@ -193,6 +194,8 @@ public:
void onRemove(const HudElement& element);
void remove(const std::shared_ptr<gui::UINode>& node);
void setDebug(bool flag);
Player* getPlayer() const;
std::shared_ptr<Inventory> getBlockInventory();