diff options
author | Pierre-Yves Rollo <dev@pyrollo.com> | 2019-11-04 09:30:02 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2019-12-06 20:31:26 +0000 |
commit | cf7fda00831372d981415f9a830513b2b28fdf25 (patch) | |
tree | ad8d856fe0c85f3cb35e205a5df4b286e04bf9aa /src/hud.h | |
parent | f6de86ce4b9da21f16d3bcdbc0c55ce4cbe23067 (diff) | |
download | minetest-cf7fda00831372d981415f9a830513b2b28fdf25.tar.gz minetest-cf7fda00831372d981415f9a830513b2b28fdf25.tar.bz2 minetest-cf7fda00831372d981415f9a830513b2b28fdf25.zip |
Add z-index management to HUD
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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[]; |