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.cpp | |
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.cpp')
-rw-r--r-- | src/hud.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hud.cpp b/src/hud.cpp index 39625b5fd..3079b5cd8 100644 --- a/src/hud.cpp +++ b/src/hud.cpp @@ -46,6 +46,7 @@ const struct EnumString es_HudElementStat[] = {HUD_STAT_WORLD_POS, "world_pos"}, {HUD_STAT_SIZE, "size"}, {HUD_STAT_Z_INDEX, "z_index"}, + {HUD_STAT_TEXT2, "text2"}, {0, NULL}, }; |