1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-09-05 06:15:23 +02:00

Merged init and legacy of default (with textures)

This commit is contained in:
LeMagnesium
2015-06-09 20:10:51 +02:00
parent ea0f069ab4
commit 9aa6b9cd98
5 changed files with 17 additions and 17 deletions

View File

@ -10,28 +10,28 @@ default = {}
default.LIGHT_MAX = 14
-- GUI related stuff:
-- 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[#606060AA;#808080;#101010;#202020;#FFF]"
function default.get_hotbar_bg(x,y)
local out = ""
for i= 0, 7, 1 do
out = out .."image[" .. x + i .. "," .. y .. ";1,1;gui_hb_bg.png]"
for i=0,7,1 do
out = out .."image["..x+i..","..y..";1,1;gui_hb_bg.png]"
end
return out
end
default.gui_survival_form = "size[8,8.5]"..
default.gui_slots ..
"list[current_player;main; 0, 4.25; 8, 4; ]" ..
"list[current_player;craft; 1.75, 0.5; 3, 3; ]" ..
"list[current_player;craftpreview; 5.75, 1.5; 1, 1; ]" ..
default.get_hotbar_bg(0, 4.25) ..
default.get_hotbar_bg(0, 5.25)
default.gui_slots..
"list[current_player;main;0,4.25;8,4;]"..
"list[current_player;craft;1.75,0.5;3,3;]"..
"list[current_player;craftpreview;5.75,1.5;1,1;]"..
default.get_hotbar_bg(0,4.25)..
default.get_hotbar_bg(0,5.25)
-- Load files:
-- Load files
dofile(minetest.get_modpath("default").."/functions.lua")
dofile(minetest.get_modpath("default").."/commands.lua")
dofile(minetest.get_modpath("default").."/nodes.lua")