From da95192b0e623331076865a376ab1b2543bf9f22 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Sun, 6 Aug 2023 12:59:47 -0400 Subject: [PATCH] default - remove gui background to reduce media transport on mobiles * the formspecs will look translucide --- mods/default/init.lua | 2 +- mods/default/legacy.lua | 1 + mods/default/player.lua | 3 --- mods/default/textures/gui_formbg.png | Bin 697 -> 0 bytes mods/default/textures/gui_hotbar.png | Bin 216 -> 0 bytes mods/default/textures/gui_hotbar_selected.png | Bin 751 -> 0 bytes 6 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 mods/default/textures/gui_formbg.png delete mode 100644 mods/default/textures/gui_hotbar.png delete mode 100644 mods/default/textures/gui_hotbar_selected.png diff --git a/mods/default/init.lua b/mods/default/init.lua index 871e5ab..997b5ab 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -10,7 +10,7 @@ default.LIGHT_MAX = 14 -- GUI related stuff default.gui_bg = "bgcolor[#080808BB;true]" -default.gui_bg_img = "background[5,5;1,1;gui_formbg.png;true]" +default.gui_bg_img = "" default.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]" function default.get_hotbar_bg(x,y) diff --git a/mods/default/legacy.lua b/mods/default/legacy.lua index 1cf3d7f..cb7918b 100644 --- a/mods/default/legacy.lua +++ b/mods/default/legacy.lua @@ -25,6 +25,7 @@ LIGHT_MAX = default.LIGHT_MAX default.gui_suvival_form = default.gui_survival_form default.gui_bg = "" default.gui_bg_img = "" +default.gui_slots = "" -- Players if minetest.get_modpath("player_api") then diff --git a/mods/default/player.lua b/mods/default/player.lua index a3d7e63..3f84bbc 100644 --- a/mods/default/player.lua +++ b/mods/default/player.lua @@ -123,9 +123,6 @@ minetest.register_on_joinplayer(function(player) default.player_set_model(player, modelchar) player:set_local_animation({x=0, y=79}, {x=168, y=187}, {x=189, y=198}, {x=200, y=219}, 30) player:set_properties({hp_max = hp_player_maximun}) - - player:hud_set_hotbar_image("gui_hotbar.png") - player:hud_set_hotbar_selected_image("gui_hotbar_selected.png") end) minetest.register_on_leaveplayer(function(player) diff --git a/mods/default/textures/gui_formbg.png b/mods/default/textures/gui_formbg.png deleted file mode 100644 index 7c913fb44745d4dfbd1f390c7324433d4e59f934..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 697 zcmeAS@N?(olHy`uVBq!ia0y~yVEh2YzgU=oB3zQpn}HO6fKP}kkcI#g6BBN3?&dlh z6(FCvB*-tA-CnKqRqZSW2Bt7i7srr_TW>F3JW-+X}`HY|2}PF}$?i%Wm(Xpiar%DVr}Nh#|;ds4G=we`KNeq0NS^ZWT=`d3 d-(I6{3>j>DozFhII}?-uJzf1=);T3K0RXaPWY_=z diff --git a/mods/default/textures/gui_hotbar.png b/mods/default/textures/gui_hotbar.png deleted file mode 100644 index 747ec09d976ee9c57495cba2e4d1b04676dbb844..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 216 zcmeAS@N?(olHy`uVBq!ia0y~yURAP}|mbAjXr-{J%@$i2bZcC{AkHqC;|ZGbjalw<#y0cXoROMfScJ>ci(83JQo zcfRzHeV)6svco@f(pbbda@6g7J$Dzo7P6dk2tm9ULZnX)v5;H%n?wHd*(v8sNq(iS zM<^+!LYNTfhFE-Ihwdhp=dZ4JW-Wd(YnI;C)Ag8%KPT_0lRUnIp~_kB2knfnMlsSc z?e3bq;pT5)wcfE&2F_`AG-pEzl5eXw4CBVo*;D5vDCMTfSu3|%Y1`)hsLs)?zZ|tN;iFGc2-$Gr3=G!~yhiz$X_qVJ9RS1+=!y#6JhC3Ro2{$xW z1F_0rjX+v$T*oH@iz88cF|_HE7$j&=LqSZ8<+sQFmUf>!Kl!dJm-Z9Pde zusSHTVP8CN_i3+R#d|&&Vl9LGAu<8H+002ovPDHLkV1hloPh|iA