From faf6cefa99f784d2ff9ab5c69d6556c28bee19fc Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 16 Aug 2015 19:06:44 +0200 Subject: [PATCH] use the default background for all automatic inventory formspecs --- homedecor/handlers/registration.lua | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/homedecor/handlers/registration.lua b/homedecor/handlers/registration.lua index b6ad5e6..2f9068c 100644 --- a/homedecor/handlers/registration.lua +++ b/homedecor/handlers/registration.lua @@ -7,38 +7,39 @@ local default_can_dig = function(pos,player) end local default_inventory_size = 32 +local background = default.gui_bg .. default.gui_bg_img .. default.gui_slots local default_inventory_formspecs = { - ["4"]="size[8,6]".. + ["4"]="size[8,6]".. background .. "list[context;main;2,0;4,1;]".. "list[current_player;main;0,2;8,4;]", - ["6"]="size[8,6]".. + ["6"]="size[8,6]".. background .. "list[context;main;1,0;6,1;]".. "list[current_player;main;0,2;8,4;]", - ["8"]="size[8,6]".. + ["8"]="size[8,6]".. background .. "list[context;main;0,0;8,1;]".. "list[current_player;main;0,2;8,4;]", - ["12"]="size[8,7]".. + ["12"]="size[8,7]".. background .. "list[context;main;1,0;6,2;]".. "list[current_player;main;0,3;8,4;]", - ["16"]="size[8,7]".. + ["16"]="size[8,7]".. background .. "list[context;main;0,0;8,2;]".. "list[current_player;main;0,3;8,4;]", - ["24"]="size[8,8]".. + ["24"]="size[8,8]".. background .. "list[context;main;0,0;8,3;]".. "list[current_player;main;0,4;8,4;]", - ["32"]="size[8,9]".. default.gui_bg .. default.gui_bg_img .. default.gui_slots .. + ["32"]="size[8,9]".. background .. "list[context;main;0,0.3;8,4;]".. "list[current_player;main;0,4.85;8,1;]".. "list[current_player;main;0,6.08;8,3;8]".. default.get_hotbar_bg(0,4.85), - ["50"]="size[10,10]".. + ["50"]="size[10,10]".. background .. "list[context;main;0,0;10,5;]".. "list[current_player;main;1,6;8,4;]", }