mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 13:31:49 +00:00
add rules & add 'show-content-access' rule
This commit is contained in:
parent
a50cb109c8
commit
2e24d60404
7 changed files with 156 additions and 28 deletions
|
|
@ -105,6 +105,8 @@ class Hud : public util::ObjectsKeeper {
|
|||
glm::ivec3 blockPos {};
|
||||
/// @brief Id of the block open (used to detect block destruction or replacement)
|
||||
blockid_t currentblockid = 0;
|
||||
/// @brief Show content access panel
|
||||
bool showContentPanel = true;
|
||||
|
||||
/// @brief UI element will be dynamicly positioned near to inventory or in screen center
|
||||
std::shared_ptr<gui::UINode> secondUI = nullptr;
|
||||
|
|
@ -172,6 +174,10 @@ public:
|
|||
|
||||
std::shared_ptr<Inventory> getBlockInventory();
|
||||
|
||||
bool isContentAccess() const;
|
||||
|
||||
void setContentAccess(bool flag);
|
||||
|
||||
static bool showGeneratorMinimap;
|
||||
|
||||
/// @brief Runtime updating debug visualization texture
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue