mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
add fullscreen block overlay
This commit is contained in:
parent
9c3d4af907
commit
b191f2ba9d
8 changed files with 74 additions and 19 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue