Announce winner(s) via 'title' HUD instead of chat | high z_index values on HUD elements
This commit is contained in:
parent
23664aff75
commit
830d748f00
@ -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}
|
||||
|
2
api.lua
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user