join/leave messages graphically improved (also, less translations to do now)

This commit is contained in:
Zughy 2020-05-15 16:52:12 +02:00
parent 55f3418972
commit e8e1a1dda9
4 changed files with 9 additions and 19 deletions

View File

@ -754,9 +754,10 @@ function arena_lib.remove_player_from_arena(p_name, is_eliminated)
player:set_pos(mod_ref.hub_spawn_point)
player:set_nametag_attributes({color = {a = 255, r = 255, g = 255, b = 255}})
arena_lib.send_message_players_in_arena(arena, mod_ref.prefix .. S("@1 has been eliminated", p_name))
arena_lib.send_message_players_in_arena(arena, minetest.colorize("#f16a54", "<<< " .. S("@1 has been eliminated", p_name)))
else
arena_lib.send_message_players_in_arena(arena, mod_ref.prefix .. S("@1 has left the game", p_name))
arena_lib.send_message_players_in_arena(arena, minetest.colorize("#f16a54", "<<< " .. p_name ))
-- TODO: ELSEIF quitta then codice colore d69298. Considerare anche se rimuovere del tutto else precedente dato che il gioco avvisa di default
end
-- se l'arena era in coda e ora ci son troppi pochi giocatori, annullo la coda

View File

@ -30,7 +30,7 @@ Arena successfully enabled=Arena abilitata con successo
Arena @1 successfully disabled=Arena @1 disabilitata con successo
@1 wins the game=@1 ha vinto la partita
@1 has been eliminated=@1 è stato eliminato
@1 has left the game=@1 ha abbandonato la partita
# TODO: quit option | @1 has left the game=@1 ha abbandonato la partita
Waiting for more players...=In attesa di più giocatori...
The queue has been cancelled due to not enough players=La coda è stata annullata per troppi pochi giocatori
You're the last player standing: you win!=Sei l'ultimo giocatore rimasto in partita: hai vinto!
@ -64,8 +64,6 @@ Left click on a sign to create/remove the access to the arena=Tasto sinistro su
# signs.lua
[!] The arena is not enabled!=[!] L'arena non è attiva!
You have left the queue=Sei uscito dalla coda
@1 has left the queue=@1 ha abbandonato la coda
Get ready!=Preparati!
The queue has been cancelled due to not enough players=La coda è stata annullata per troppi pochi giocatori
[!] The arena is already full!=[!] L'arena è già piena!
@ -73,8 +71,6 @@ The queue has been cancelled due to not enough players=La coda è stata annullat
[!] This minigame doesn't allow to join while in progress!=[!] Questo minigioco non permette di entrare a partita iniziata!
@1 has joined the game=@1 si è aggiunto alla partita
You've entered the arena @1=Sei entrato nell'arena @1
@1 has joined the queue=@1 si è aggiunto alla coda
You've joined the queue for @1=Ti sei aggiunto alla coda per @1
The game begins in @1 seconds!=La partita inizierà tra @1 secondi!
@1 seconds for the match to start=@1 secondi all'inizio
Left click on a sign to set the arena=Click sinistro su un cartello per impostare l'arena

View File

@ -30,7 +30,7 @@ Arena successfully enabled=
Arena @1 successfully disabled=
@1 wins the game=
@1 has been eliminated=
@1 has left the game=
# TODO: quit option | @1 has left the game=
Waiting for more players...=
The queue has been cancelled due to not enough players=
You're the last player standing: you win!=
@ -64,8 +64,6 @@ Left click on a sign to create/remove the access to the arena=
# signs.lua
[!] The arena is not enabled!=
You have left the queue=
@1 has left the queue=
Get ready!=
The queue has been cancelled due to not enough players=
[!] The arena is already full!=
@ -73,8 +71,6 @@ The queue has been cancelled due to not enough players=
[!] This minigame doesn't allow to join while in progress!=
@1 has joined the game=
You've entered the arena @1=
@1 has joined the queue=
You've joined the queue for @1=
The game begins in @1 seconds!=
@1 seconds for the match to start=
Left click on a sign to set the arena=

View File

@ -51,12 +51,11 @@ minetest.override_item("default:sign_wall", {
-- se la coda è la stessa rimuovo il giocatore...
if queued_mod == mod and queued_ID == arenaID then
arena_lib.send_message_players_in_arena(sign_arena, minetest.colorize("#d69298", sign_arena.name .. " < " .. p_name))
sign_arena.players[p_name] = nil
arena_lib.update_sign(pos, sign_arena)
arena_lib.remove_from_queue(p_name)
arena_lib.HUD_hide("all", p_name)
minetest.chat_send_player(p_name, mod_ref.prefix .. S("You have left the queue"))
arena_lib.send_message_players_in_arena(sign_arena, mod_ref.prefix .. S("@1 has left the queue", p_name))
local players_in_arena = arena_lib.get_arena_players_count(sign_arena)
@ -83,7 +82,7 @@ minetest.override_item("default:sign_wall", {
old_arena.players[p_name] = nil
arena_lib.remove_from_queue(p_name)
arena_lib.update_sign(old_arena.sign, old_arena)
arena_lib.send_message_players_in_arena(old_arena, old_mod_ref.prefix .. S("@1 has left the queue", p_name))
arena_lib.send_message_players_in_arena(old_arena, minetest.colorize("#d69298", sign_arena.name .. " < " .. p_name))
local players_in_arena = arena_lib.get_arena_players_count(old_arena)
@ -111,13 +110,11 @@ minetest.override_item("default:sign_wall", {
-- notifico i vari giocatori del nuovo player
if sign_arena.in_game then
arena_lib.join_arena(mod, p_name, arenaID)
arena_lib.send_message_players_in_arena(sign_arena, mod_ref.prefix .. S("@1 has joined the game", p_name))
minetest.chat_send_player(p_name, mod_ref.prefix .. S("You've entered the arena @1", sign_arena.name))
arena_lib.send_message_players_in_arena(sign_arena, minetest.colorize("#c6f154", " >>> " .. p_name))
return
else
arena_lib.add_to_queue(p_name, mod, arenaID)
arena_lib.send_message_players_in_arena(sign_arena, mod_ref.prefix .. S("@1 has joined the queue", p_name))
minetest.chat_send_player(p_name, mod_ref.prefix .. S("You've joined the queue for @1", sign_arena.name))
arena_lib.send_message_players_in_arena(sign_arena, minetest.colorize("#c8d692", sign_arena.name .. " > " .. p_name))
end
local timer = minetest.get_node_timer(pos)