add fullscreen block overlay

This commit is contained in:
MihailRis
2024-10-31 18:22:55 +03:00
parent 9c3d4af907
commit b191f2ba9d
8 changed files with 74 additions and 19 deletions
+1
View File
@@ -141,6 +141,7 @@ void Block::cloneTo(Block& dst) {
dst.uiLayout = uiLayout;
dst.inventorySize = inventorySize;
dst.tickInterval = tickInterval;
dst.overlayTexture = overlayTexture;
}
static std::set<std::string, std::less<>> RESERVED_BLOCK_FIELDS {
+3
View File
@@ -185,6 +185,9 @@ public:
/// @brief Block will be used instead of this if generated on surface
std::string surfaceReplacement = name;
/// @brief Texture will be shown on screen if camera is inside of the block
std::string overlayTexture;
/// @brief Default block layout will be used by hud.open_block(...)
std::string uiLayout = name;