Add formspec theming, remove sfinv's dependency on default
This commit is contained in:
parent
f3ce25fc72
commit
b0e55c52c8
5 changed files with 19 additions and 12 deletions
|
@ -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 = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue