diff options
author | Wuzzy <wuzzy2@mail.ru> | 2020-05-11 21:40:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 21:40:45 +0200 |
commit | 6e1372bd894d955300c40d69e5c882e9cc7d7523 (patch) | |
tree | 6273a8c2ddfec5efbc5b69fa49b088368dd78c15 /src/hud.h | |
parent | 88bb8e57e6780130df1877e7a89bb56c9561ea6a (diff) | |
download | minetest-6e1372bd894d955300c40d69e5c882e9cc7d7523.tar.gz minetest-6e1372bd894d955300c40d69e5c882e9cc7d7523.tar.bz2 minetest-6e1372bd894d955300c40d69e5c882e9cc7d7523.zip |
Add support for statbar “off state” icons (#9462)
This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles.
Add "off state" textures to the builtin statbars.
Co-authored-by: SmallJoker <mk939@ymail.com>
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -77,6 +77,7 @@ enum HudElementStat { HUD_STAT_WORLD_POS, HUD_STAT_SIZE, HUD_STAT_Z_INDEX, + HUD_STAT_TEXT2, }; struct HudElement { @@ -93,6 +94,7 @@ struct HudElement { v3f world_pos; v2s32 size; s16 z_index = 0; + std::string text2; }; extern const EnumString es_HudElementType[]; |