From 88c6a32eb0ddd18271fd5499d2fdc8fc816a364c Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Mon, 23 Jan 2023 02:09:00 +0100 Subject: [PATCH] Infobox: show players in queue --- locale/arena_lib.it.tr | 2 +- locale/template.txt | 2 +- src/signs/signs.lua | 6 +++--- textures/arenalib_infobox_bg.png | Bin 858 -> 847 bytes 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/locale/arena_lib.it.tr b/locale/arena_lib.it.tr index d1c84fe..f67c0d8 100755 --- a/locale/arena_lib.it.tr +++ b/locale/arena_lib.it.tr @@ -244,7 +244,7 @@ One sign per arena=Un cartello per arena Arena sign=Cartello dell'arena [!] Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=[!]Oh oh, sembra che questo cartello sia fuori posto: beh, sistemato, colpiscilo di nuovo! [!] That's not an arena_lib sign!=[!] Questo non è un cartello di arena_lib! -No ongoing match=Nessuna partita in corso +No ongoing activity=Nessuna attività in corso Now inside=Ora dentro The arena is not enabled=L'arena non è abilitata Leave the queue (you can also left-click the sign)=Abbandona la coda (puoi farlo anche premendo il cartello col sinistro) diff --git a/locale/template.txt b/locale/template.txt index a4edf6a..a9c8744 100755 --- a/locale/template.txt +++ b/locale/template.txt @@ -243,7 +243,7 @@ One sign per arena= Arena sign= [!] Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!= [!] That's not an arena_lib sign!= -No ongoing match= +No ongoing activity= Now inside= The arena is not enabled= Leave the queue (you can also left-click the sign)= diff --git a/src/signs/signs.lua b/src/signs/signs.lua index a8b3201..5ec4930 100755 --- a/src/signs/signs.lua +++ b/src/signs/signs.lua @@ -230,8 +230,8 @@ function get_infobox_formspec(mod, arenaID, player) local thumbnail = arena.thumbnail ~= "" and arena.thumbnail or "arenalib_infobox_thumbnail.png" local list_bg, inside_col, pl_list - -- se è in partita... - if arena.in_game then + -- se c'è una partita o qualcunə in coda... + if arena.in_game or arena.players_amount > 0 then list_bg = "arenalib_infobox_list.png" inside_col = "#5a5353" pl_list = "" @@ -269,7 +269,7 @@ function get_infobox_formspec(mod, arenaID, player) else list_bg = "arenalib_infobox_list_off.png" inside_col = "#d7ded7" - pl_list = "hypertext[0.7,2.22;3.6,2;name;]" + pl_list = "hypertext[0.7,2.22;3.6,2;name;]" end local bgm_info diff --git a/textures/arenalib_infobox_bg.png b/textures/arenalib_infobox_bg.png index 34c1c2f351d9cc29662e57f45ad0d17f05e007b1..54b205ba9eb812efb31a95de61cdc924d97e4616 100644 GIT binary patch literal 847 zcmeAS@N?(olHy`uVBq!ia0y~yU`z+HD>&GIq@KTVIRgW;n5T76oLU2a_pYB9N?#Hz$m^q|PGSzzn-E$ll@TY2A|a-6-Lqy4h3SGT#x7x5Lo zo~Q4M@J&B|T}F%B>fO2DAFFiF7hP_D|M{EazVh=G3>V6e^)fijVa!lJcV13!OAjks zbme}tG%jb6=OWLXvSE&SGg>8+a_d6MTa3Zyd} zkp$`&NdM*f_^Y+^4yNj}H8!Wr7tc8DUYNHo)OPL%ue%z@DzkH~mn|<+JE70l@0a{B zXKu~Uvj$afjve1^Xt{m*TF=7o7LVS1jcAlxXtCTNKF6i;*?RRCUz-%aT)6(M(1efc z=B%T?KCb0>Z_^((CwM~ejQRB|esrIam%B4Ra_u_tdrK~Fc8E`0bNQsD8c))cM>T>O zJI)+@?!Wrz49>W-} zA)ZG(K-^={Y|#wF%4ZsYSm9icP94E?h%ju(r&lMx%U*R-dU{Ly?wK3 z_txxHMZABw-=SP{;-h*&~ujG$Oc(Qv@~vs0m>b*aRRS z$s|e?HSit%`Qe2LFm9K*-@asQlFf7B=j7sBF|)OoP7}OzZZmU<;yM2~-Q(A8ZF_lf z+ZP_jSPRSBF$}d5Xuf^nGUxTwxifTiXY%kY*itWf$YT2U>|{aiwY^a{Qy6}|d{QHq l!SGA#97BgO!}K4F?6+TDyS;1KRA5G7@O1TaS?83{1OSN!W_ADo literal 858 zcmeAS@N?(olHy`uVBq!ia0y~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