diff --git a/mods/default/hud.lua b/mods/default/hud.lua index 2ea6723..78f8d8e 100644 --- a/mods/default/hud.lua +++ b/mods/default/hud.lua @@ -10,6 +10,7 @@ local health_bar_definition = { direction = 0, size = { x=24, y=24 }, offset = { x=(-10*16)-64-32, y=-(48+24+24)}, + z_index = 1, } local breath_bar_definition = { @@ -20,6 +21,7 @@ local breath_bar_definition = { dir = 0, size = { x=24, y=24 }, offset = {x=16,y=-(48+24+24)-24}, + z_index = 1, } local health_bar_bg = { @@ -30,6 +32,7 @@ local health_bar_bg = { direction = 0, size = { x=24, y=24 }, offset = { x=(-10*16)-64-32, y=-(48+24+24)}, + z_index = 0, } local breath_bar_bg = { @@ -40,6 +43,7 @@ local breath_bar_bg = { dir = 0, size = { x=24, y=24 }, offset = {x=16,y=-(48+24+24)-24}, + z_index = 0, } default.hud.ids={} diff --git a/mods/hunger/init.lua b/mods/hunger/init.lua index a145b00..f43e027 100644 --- a/mods/hunger/init.lua +++ b/mods/hunger/init.lua @@ -108,6 +108,7 @@ function hunger.update_bar(player) dir = 0, size = {x=24, y=24}, offset = {x=16, y=-(48+24+24)}, + z_index = 1, }) end end @@ -153,6 +154,7 @@ local function on_joinplayer(player) dir = 0, size = {x=24, y=24}, offset = {x=16, y=-(48+24+24)}, + z_index = 0, }) hunger.update_bar(player) diff --git a/mods/player_effects/init.lua b/mods/player_effects/init.lua index f577db2..3e5eb4e 100644 --- a/mods/player_effects/init.lua +++ b/mods/player_effects/init.lua @@ -59,6 +59,7 @@ local function display_effect_icons(player) scale = { x = 3, y = 3 }, size = { x = 16, y = 16 }, alignment = { x = 1, y = 1 }, + z_index = 10, }) table.insert(huds[name], id) i = i + 1 diff --git a/mods/show_wielded_item/init.lua b/mods/show_wielded_item/init.lua index 0606d77..b22c652 100644 --- a/mods/show_wielded_item/init.lua +++ b/mods/show_wielded_item/init.lua @@ -42,6 +42,7 @@ local function set_hud(player) alignment = {x=0, y=0}, number = 0xFFFFFF , text = "", + z_index = 10, }) end diff --git a/mods/vignette/init.lua b/mods/vignette/init.lua index a14ce59..1db76e5 100644 --- a/mods/vignette/init.lua +++ b/mods/vignette/init.lua @@ -12,6 +12,7 @@ if enable_vignette then scale = {x = -100, y = -100}, alignment = 0, text = "vignette_vignette.png", + z_index = -40, } local function on_joinplayer(player)