mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
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>
This commit is contained in:
@@ -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[];
|
||||
|
Reference in New Issue
Block a user