Merge branch 'master' of https://github.com/MT-CTF/capturetheflag
Conflicts: mods/ctf/ctf_map/ctf_map_core/maps
This commit is contained in:
commit
fef2d8ca0a
2 changed files with 18 additions and 5 deletions
|
@ -1,2 +1,3 @@
|
|||
name = map_maker
|
||||
depends = ctf_map_core, worldedit
|
||||
depends = ctf_map_core
|
||||
optional_depends = worldedit
|
||||
|
|
|
@ -10,10 +10,22 @@ default.LIGHT_MAX = 14
|
|||
|
||||
-- GUI related stuff
|
||||
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] ]])
|
||||
-- Set formspec prepend
|
||||
local formspec = [[
|
||||
bgcolor[#080808BB;true]
|
||||
listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]
|
||||
]]
|
||||
|
||||
local name = player:get_player_name()
|
||||
local info = minetest.get_player_information(name)
|
||||
|
||||
if info.formspec_version > 1 then
|
||||
formspec = formspec .. "background9[5,5;1,1;gui_formbg.png;true;10]"
|
||||
else
|
||||
formspec = formspec .. "background[5,5;1,1;gui_formbg.png;true]"
|
||||
end
|
||||
|
||||
player:set_formspec_prepend(formspec)
|
||||
end)
|
||||
|
||||
function default.get_hotbar_bg(x,y)
|
||||
|
|
Loading…
Reference in a new issue