mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00: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:
parent
88bb8e57e6
commit
6e1372bd89
15 changed files with 132 additions and 36 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[];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue