Remove 'default' dependency

This commit is contained in:
octacian 2017-02-22 17:25:43 -08:00
parent 04869a8bca
commit 0d917954eb
3 changed files with 7 additions and 5 deletions

View File

@ -3,6 +3,10 @@ microexpansion = {}
microexpansion.modpath = minetest.get_modpath("microexpansion") -- modpath microexpansion.modpath = minetest.get_modpath("microexpansion") -- modpath
local modpath = microexpansion.modpath -- modpath pointer local modpath = microexpansion.modpath -- modpath pointer
-- Formspec GUI related stuff
microexpansion.gui_bg = "bgcolor[#080808BB;true]background[5,5;1,1;gui_formbg.png;true]"
microexpansion.gui_slots = "listcolors[#00000069;#5A5A5A;#141318;#30434C;#FFF]"
-- logger -- logger
function microexpansion.log(content, log_type) function microexpansion.log(content, log_type)
if not content then return false end if not content then return false end

View File

@ -15,9 +15,8 @@ local function chest_formspec(start_id, listname, page_max, query)
"/" .. page_max .."]" "/" .. page_max .."]"
end end
return "size[9,10]" .. return "size[9,10]" ..
default.gui_bg .. microexpansion.gui_bg ..
default.gui_bg_img .. microexpansion.gui_slots ..
default.gui_slots ..
list .. list ..
"list[current_name;cells;8,1.8;1,1;]" .. "list[current_name;cells;8,1.8;1,1;]" ..
"list[current_player;main;0,5.5;8,1;]" .. "list[current_player;main;0,5.5;8,1;]" ..
@ -32,8 +31,7 @@ local function chest_formspec(start_id, listname, page_max, query)
"listring[current_name;main]" .. "listring[current_name;main]" ..
"listring[current_player;main]" .. "listring[current_player;main]" ..
"field_close_on_enter[filter;false]" .. "field_close_on_enter[filter;false]" ..
page_number .. page_number
default.get_hotbar_bg(0,5.50)
end end
-- [me chest] Register node -- [me chest] Register node

BIN
textures/gui_formbg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 B