From 3b997feb41161c2feb97f62a9b8786431d6590b5 Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Wed, 17 Feb 2021 16:12:34 +0100 Subject: [PATCH] Added hotbar backgrounds for spectate mode --- _editor/editor_main.lua | 2 +- _spectate/spectate_main.lua | 1 + textures/arenalib_gui_hotbar2.png | Bin 0 -> 126 bytes textures/arenalib_gui_hotbar3.png | Bin 0 -> 132 bytes textures/arenalib_gui_hotbar4.png | Bin 0 -> 140 bytes ..._gui_hotbar.png => arenalib_gui_hotbar9.png} | Bin textures/arenalib_spectate_changeplayer.png | Bin 185 -> 168 bytes textures/arenalib_spectate_changeteam.png | Bin 287 -> 187 bytes 8 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 textures/arenalib_gui_hotbar2.png create mode 100644 textures/arenalib_gui_hotbar3.png create mode 100644 textures/arenalib_gui_hotbar4.png rename textures/{arenalib_gui_hotbar.png => arenalib_gui_hotbar9.png} (100%) diff --git a/_editor/editor_main.lua b/_editor/editor_main.lua index 98d5cd2..32ed3a0 100755 --- a/_editor/editor_main.lua +++ b/_editor/editor_main.lua @@ -105,7 +105,7 @@ function arena_lib.enter_editor(sender, mod, arena_name) player:get_meta():set_string("arena_lib_editor.arena", arena_name) player:hud_set_hotbar_itemcount(9) - player:hud_set_hotbar_image("arenalib_gui_hotbar.png") + player:hud_set_hotbar_image("arenalib_gui_hotbar9.png") -- se c'รจ almeno uno spawner, teletrasporto if next(arena.spawn_points) then diff --git a/_spectate/spectate_main.lua b/_spectate/spectate_main.lua index 6f3202a..dfb1688 100644 --- a/_spectate/spectate_main.lua +++ b/_spectate/spectate_main.lua @@ -305,6 +305,7 @@ function override_hotbar(player, mod, arena) end minetest.after(0, function() + player:hud_set_hotbar_image("arenalib_gui_hotbar" .. #tools .. ".png") player:hud_set_hotbar_itemcount(#tools) player:get_inventory():set_list("main", tools) end) diff --git a/textures/arenalib_gui_hotbar2.png b/textures/arenalib_gui_hotbar2.png new file mode 100644 index 0000000000000000000000000000000000000000..e843c05ed030e6138bee254d610afc04e34952d0 GIT binary patch literal 126 zcmeAS@N?(olHy`uVBq!ia0vp^K0vI_$P6UsXW4uNQfvV}A+A6g2$rVrJP)LpN`m}? z8H)GMf4dLJQ}uLl45_%4oN$2a$$ubV?D%hPaD(~ee1&I?foi=oJr?$fGB9|)w=mr6 Sdq)ANfx*+&&t;ucLK6V&%O=18 literal 0 HcmV?d00001 diff --git a/textures/arenalib_gui_hotbar3.png b/textures/arenalib_gui_hotbar3.png new file mode 100644 index 0000000000000000000000000000000000000000..aeb751c640320c1aafd3a21cda2a04f06ede0f27 GIT binary patch literal 132 zcmeAS@N?(olHy`uVBq!ia0vp^g+Q#%$P6Tz(oHLY6kC8#h%1l=f~Dy@&jTr@k|4ie zhT{G6-|hqQv^`xMLn>}1CnzvH`40q)9sjp8f0Soqt5*0be8isr$bYw=%5(eY*>Ny1 Xuy`D;?mD4A5oDOBtDnm{r-UW|UH&J3 literal 0 HcmV?d00001 diff --git a/textures/arenalib_gui_hotbar4.png b/textures/arenalib_gui_hotbar4.png new file mode 100644 index 0000000000000000000000000000000000000000..8692d891fba915d082ef8d407b7a141c59a219d6 GIT binary patch literal 140 zcmeAS@N?(olHy`uVBq!ia0vp^(|}l=kr_x{k5n!MQfvV}A+A6g2$rVrJP)LpN`m}? z8H)GMf4dLJGxl_G45_%4oS-0d;y(~D3;fS#e`Np7;SnQq#~)51YyKnuUpZ>I9d$d( g7Qz#4r7Fb0;1L$TuI0p}XCOm8UHx3vIVCg!0Qr_G<^TWy literal 0 HcmV?d00001 diff --git a/textures/arenalib_gui_hotbar.png b/textures/arenalib_gui_hotbar9.png similarity index 100% rename from textures/arenalib_gui_hotbar.png rename to textures/arenalib_gui_hotbar9.png diff --git a/textures/arenalib_spectate_changeplayer.png b/textures/arenalib_spectate_changeplayer.png index e2f472f3aec46b132d4fb5cd07eab680d9b87c73..2f9fde3ae0c90947a25e45f019f5cfd08b5c2fa9 100644 GIT binary patch delta 152 zcmdnVxPozlL_G^L0|Ud`yN`l^lu&?Ah%1mb(9t`8Y{#~%HVY>A)fN=)cwmzQ6lE+4 z@(X5gcy=QV$Z_#>aSW-rm7H*ZO@eg+kD_Zx8^hvBlNgi(8W%2@G-<&GhUN_$7fuqI z;LyQvb;pi|D-5BX7EZiEg)Os`r8rVKxRSO?GF0zm6)Y}me4Pa}kipZ{&t;ucLK6VW C>NQ~i delta 169 zcmZ3%xRY^$L_G&H0|SGGE`KnPVk{1FcVbv~PUa<$BNX5h;tHe> Q1DeO+>FVdQ&MBb@0EBozTL1t6 diff --git a/textures/arenalib_spectate_changeteam.png b/textures/arenalib_spectate_changeteam.png index a5ea911ca53bcfeeb14bdf5ca6a5ce5438e4cf5a..73692c66a405cbd7ca56e68e5832cf831a2f2f56 100644 GIT binary patch delta 159 zcmV;Q0AT;00=of_B!7ZQL_t(|+GAkA0}OQZ{(~?BIRK>bnFj=uWe7zEAZsSe5SRh5 zFd)hRWCbvd8fWfYypbT0HUJNvSI}aCfNXFL&(Y#=mwCL7yLuA!I*3VkQgy8bpQk8p%Rq$bb)5J=wp^5?xrKu{EfeH4Vf z#CX!>%XZkuHQb*ME9*<{b7XbZUsrNfAyyFA!;&-_OotWM(0t_uU0(c{=&Y{-*>UxE z>ME~T08a&UrAb4V7e;J(*kj{7y@E7p#-zwp=RauAnRP$Qz}AkdMP~~Dn|BF7B`~5v^(v(_0AE-+W&egPZR-F4002ov JPDHLkV1ld}cxC_q