1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Add formspec theming, remove sfinv's dependency on default

This commit is contained in:
Andrew Ward
2018-03-28 18:28:26 +01:00
committed by GitHub
parent f3ce25fc72
commit b0e55c52c8
5 changed files with 19 additions and 12 deletions

View File

@ -9,9 +9,16 @@ default = {}
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_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
default.gui_bg = ""
default.gui_bg_img = ""
default.gui_slots = ""
minetest.register_on_joinplayer(function(player)
player:set_formspec_prepend([[
bgcolor[#080808BB;true]
background[5,5;1,1;gui_formbg.png;true]
listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF] ]])
end)
function default.get_hotbar_bg(x,y)
local out = ""