1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add z-index management to HUD

This commit is contained in:
Pierre-Yves Rollo 2019-11-04 09:30:02 +01:00 committed by rubenwardy
parent f6de86ce4b
commit cf7fda0083
10 changed files with 57 additions and 7 deletions

View file

@ -74,7 +74,8 @@ enum HudElementStat {
HUD_STAT_ALIGN,
HUD_STAT_OFFSET,
HUD_STAT_WORLD_POS,
HUD_STAT_SIZE
HUD_STAT_SIZE,
HUD_STAT_Z_INDEX,
};
struct HudElement {
@ -90,6 +91,7 @@ struct HudElement {
v2f offset;
v3f world_pos;
v2s32 size;
s16 z_index = 0;
};
extern const EnumString es_HudElementType[];