diff --git a/_hud/hud_main.lua b/_hud/hud_main.lua index f3d86ea..1e23e4c 100755 --- a/_hud/hud_main.lua +++ b/_hud/hud_main.lua @@ -18,6 +18,7 @@ function arena_lib.HUD_add(player) text = "", size = { x = 2}, number = 0xFFFFFF, + z_index = 1100 }) local HUD_BROADCAST_IMG = player:hud_add({ @@ -26,6 +27,7 @@ function arena_lib.HUD_add(player) text = "", scale = { x = 25, y = 2}, number = 0xFFFFFF, + z_index = 1100 }) local HUD_BROADCAST_TXT = player:hud_add({ @@ -34,6 +36,7 @@ function arena_lib.HUD_add(player) text = "", size = { x = 1, y = 1}, number = 0xFFFFFF, + z_index = 1100 }) local HUD_HOTBAR_IMG = player:hud_add({ @@ -43,6 +46,7 @@ function arena_lib.HUD_add(player) text = "", scale = { x = 25, y = 1.5}, number = 0xFFFFFF, + z_index = 1100 }) local HUD_HOTBAR_TXT = player:hud_add({ @@ -52,6 +56,7 @@ function arena_lib.HUD_add(player) text = "", size = { x = 1, y = 1}, number = 0xFFFFFF, + z_index = 1100 }) player_huds[player:get_player_name()] = {HUD_TITLE_TXT, HUD_BROADCAST_IMG, HUD_BROADCAST_TXT, HUD_HOTBAR_IMG, HUD_HOTBAR_TXT} diff --git a/api.lua b/api.lua index 34da007..b77f47b 100755 --- a/api.lua +++ b/api.lua @@ -1117,7 +1117,7 @@ function arena_lib.load_celebration(mod, arena, winner_name) winning_message = S("Team @1 wins the game", arena.teams[winner_team_ID].name) end - arena_lib.send_message_players_in_arena(arena, mod_ref.prefix .. winning_message) + arena_lib.HUD_send_msg_all("title", arena, winning_message, mod_ref.celebration_time) -- eventuale codice aggiuntivo if mod_ref.on_celebration then