default - remove gui background to reduce media transport on mobiles

* the formspecs will look translucide
This commit is contained in:
mckaygerhard 2023-08-06 12:59:47 -04:00
parent 322d7d3b70
commit da95192b0e
6 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,7 @@ default.LIGHT_MAX = 14
-- GUI related stuff -- GUI related stuff
default.gui_bg = "bgcolor[#080808BB;true]" 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]" default.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
function default.get_hotbar_bg(x,y) function default.get_hotbar_bg(x,y)

View File

@ -25,6 +25,7 @@ LIGHT_MAX = default.LIGHT_MAX
default.gui_suvival_form = default.gui_survival_form default.gui_suvival_form = default.gui_survival_form
default.gui_bg = "" default.gui_bg = ""
default.gui_bg_img = "" default.gui_bg_img = ""
default.gui_slots = ""
-- Players -- Players
if minetest.get_modpath("player_api") then if minetest.get_modpath("player_api") then

View File

@ -123,9 +123,6 @@ minetest.register_on_joinplayer(function(player)
default.player_set_model(player, modelchar) 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_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: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) end)
minetest.register_on_leaveplayer(function(player) minetest.register_on_leaveplayer(function(player)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 751 B