Editor: turn name of players section into "Players and teams", when teams are enabled (closes #302)

This commit is contained in:
marco_a 2024-02-08 15:42:29 +01:00
parent ea1c2694fb
commit 512765b7dd
9 changed files with 34 additions and 21 deletions

View File

@ -239,6 +239,7 @@ Leave=Verlassen
##[ src/editor/editor_main.lua ]##
Wooosh!=Wusch!
Players and teams=
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -171,7 +171,7 @@ Get ready!=¡Prepárate!
@1 seconds for the match to start=@1 segundos para que comience la partida
You're already queuing for this arena!=¡Ya estás en cola para esta arena!
You've been blocked from entering any queue for 10 seconds, due to joining and leaving repeatedly in a short amount of time!=¡Te ha sido prohibido acceder a cualquier cola por 10 segundos, por entrar y salir repetidamente en poco tiempo!
Waiting for more players...=Esperando más jugadores...
Waiting for more players...=Esperando a más jugadores...
Only the party leader can leave the queue!=¡Solo el jefe de grupo puede abandonar la cola!
The queue has been cancelled due to not enough players=La cola ha sido cancelada debido a que no hay suficientes jugadores
@ -226,7 +226,7 @@ The party leader must not be in game to perform this action!=El jefe de grupo no
Players=Jugadores
Values are PER TEAM! Use item #4 to change value=¡Los valores son POR EQUIPO! Usa el 4.° objeto para cambiar valor
Spawners=Generadores
Map=
Map=Mapa
Customise=Personalizar
Settings=Configuraciones
Info=Info
@ -239,6 +239,7 @@ Leave=Salir
##[ src/editor/editor_main.lua ]##
Wooosh!=¡Wooosh!
Players and teams=Jugadores y equipos
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##
@ -248,7 +249,7 @@ You must leave the editor first!=¡Primero tienes que salir del editor!
Background music=Música de fondo
Audio file=Archivo de audio
leave empty to remove the current track=dejar vacío para eliminar la pista actual
Description=
Description=Descripción
used for accessibility purposes=
Title=Título
Author=Autor
@ -296,9 +297,9 @@ West=Oeste
East=Este
North=Norte
South=Sur
Fog=
Fog distance=
Fog start=
Fog=Niebla
Fog distance=Distancia niebla
Fog start=Comienzo niebla
Visible sun=Sol visible
Visible sunrise=Alba visible
Texture=Textura
@ -322,9 +323,9 @@ Colour=Color
##[ src/editor/tools_customise_weather.lua ]##
Weather condition=Condición metereológica
Rain=
Snow=
Dust=
Rain=Lluvia
Snow=Nieve
Dust=Polvo
##[ src/editor/tools_customise_weather.lua ]##
##[ src/utils/debug.lua ]##
@ -407,17 +408,17 @@ That's not an arena_lib sign!=¡Este no es un cartel de arena_lib!
No ongoing activity=No hay actividades en curso
(you can also left-click the sign)=
The arena is not enabled=La arena no está habilitada
Leave the queue=
Leave the queue=Dejar la cola
Full=Llena
Play=
Play=Jugar
This minigame can't be joined whilst a game is in progress=No se puede entrar en este minijuego mientras hay una partida en curso
Spectate mode not supported=Modo espectador no admitido
Spectate=Asistir
Spectate (there must be a game in progress)=Asistir (tiene que haber una partida en curso)
Edit=
Edit=Editar
Force start=
Now inside=Ahora dentro
Close=
Close=Cerrar
##[ src/signs/signs_editor.lua ]##
Add sign=Añadir cartel
@ -432,7 +433,7 @@ Currently spectating: @1=Estás asistiendo a: @1
##[ src/spectate/spectate_main.lua ]##
##[ src/utils/debug.lua ]##
Spectators inside: @1=
Spectators inside: @1=Espectadores actuales: @1
##[ src/spectate/spectate_tools.lua ]##
Change player=Cambiar jugador
@ -505,14 +506,13 @@ Your version of Minetest is too old to play this minigame! Please update it=
The arena is already full!=¡La arena ya está llena!
##[ src/utils/utils.lua ]##
[!] @1=
[!] @1=[!] @1
You've joined team @1=Te has unido al equipo @1
##### not used anymore #####
Are you sure you want to delete the region of the arena?=¿Estás seguro que quieres borrar la región de la arena?
Spectators inside: =Espectadores actuales:
current: =actual:
name: =nombre:
Total arenas: =Arenas totales:

View File

@ -239,6 +239,7 @@ Leave=Kilépés
##[ src/editor/editor_main.lua ]##
Wooosh!=Wuuush!
Players and teams=
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -239,6 +239,7 @@ Leave=Esci
##[ src/editor/editor_main.lua ]##
Wooosh!=Wooosh!
Players and teams=Giocatorɜ e squadre
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -239,6 +239,7 @@ Leave=Wyjdź
##[ src/editor/editor_main.lua ]##
Wooosh!=Świst!
Players and teams=
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -239,6 +239,7 @@ Leave=Покинуть
##[ src/editor/editor_main.lua ]##
Wooosh!=Вжууух!
Players and teams=
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -239,6 +239,7 @@ Leave=
##[ src/editor/editor_main.lua ]##
Wooosh!=
Players and teams=
##[ src/editor/editor_main.lua ]##
##[ src/utils/macros.lua ]##

View File

@ -4,7 +4,7 @@ local S = minetest.get_translator("arena_lib")
minetest.register_tool("arena_lib:editor_players", {
description = S("Players"),
description = S("Players"), -- or "Players and teams", changed in editor_main
inventory_image = "arenalib_editor_players.png",
groups = {not_in_creative_inventory = 1},
on_place = function() end,

View File

@ -262,15 +262,22 @@ end
----------------------------------------------
function arena_lib.show_main_editor(player)
local mod = player:get_meta():get_string("arena_lib_editor.mod")
local arena_name = player:get_meta():get_string("arena_lib_editor.arena")
local _, arena = arena_lib.get_arena_by_name(mod, arena_name)
local p_inv = player:get_inventory()
p_inv:set_list("main", editor_tools)
p_inv:set_stack("main", 3, arena_lib.entrances[arena.entrance_type].mod .. ":editor_entrance")
player:get_inventory():set_list("main", editor_tools)
player:get_inventory():set_stack("main", 3, arena_lib.entrances[arena.entrance_type].mod .. ":editor_entrance")
if minetest.registered_items[mod .. ":arenalib_editor_slot_custom"] then
player:get_inventory():set_stack("main", 7, mod .. ":arenalib_editor_slot_custom")
p_inv:set_stack("main", 7, mod .. ":arenalib_editor_slot_custom")
end
if arena.teams_enabled then
local players_section = p_inv:get_stack("main", 1)
players_section:get_meta():set_string("description", S("Players and teams"))
p_inv:set_stack("main", 1, players_section)
end
end