add more cheating-related rules

This commit is contained in:
MihailRis
2024-11-06 18:54:20 +03:00
parent 22fa082fc6
commit 6602584c13
5 changed files with 65 additions and 20 deletions
+5 -1
View File
@@ -69,6 +69,7 @@ public:
};
class Hud : public util::ObjectsKeeper {
Engine* engine;
Assets* assets;
std::unique_ptr<Camera> uicamera;
gui::GUI* gui;
@@ -107,7 +108,8 @@ class Hud : public util::ObjectsKeeper {
blockid_t currentblockid = 0;
/// @brief Show content access panel
bool showContentPanel = true;
/// @brief Provide cheat controllers to the debug panel
bool allowDebugCheats = true;
/// @brief UI element will be dynamicly positioned near to inventory or in screen center
std::shared_ptr<gui::UINode> secondUI = nullptr;
@@ -178,6 +180,8 @@ public:
void setContentAccess(bool flag);
void setDebugCheats(bool flag);
static bool showGeneratorMinimap;
/// @brief Runtime updating debug visualization texture