ui nodes 'gravity' write-only property

This commit is contained in:
MihailRis
2024-03-06 13:36:31 +03:00
parent 7601bfad3a
commit eba8332b75
5 changed files with 142 additions and 51 deletions
+2 -1
View File
@@ -97,7 +97,7 @@ class Hud {
/// @brief Block inventory view
std::shared_ptr<InventoryView> blockUI = nullptr;
/// @brief Position of the block open
glm::ivec3 currentblock {};
glm::ivec3 blockPos {};
/// @brief Id of the block open (used to detect block destruction or replacement)
blockid_t currentblockid = 0;
@@ -107,6 +107,7 @@ class Hud {
std::shared_ptr<InventoryView> createContentAccess();
std::shared_ptr<InventoryView> createHotbar();
void processInput(bool visible);
void updateElementsPosition(const Viewport& viewport);
void cleanup();
public: