mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
add more cheating-related rules
This commit is contained in:
parent
22fa082fc6
commit
6602584c13
5 changed files with 65 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue