From 4829445d12abf87607e2438a3d29bf177808c19b Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 15 Feb 2017 19:37:35 +0000 Subject: [PATCH] Update style of default armor formspec --- 3d_armor/armor.lua | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index ea35cbd..5ef9626 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -56,12 +56,18 @@ armor = { timer = 0, elements = {"head", "torso", "legs", "feet"}, physics = {"jump","speed","gravity"}, - formspec = "size[8,8.5]image[2,0.75;2,4;armor_preview]" - .."list[current_player;main;0,4.5;8,4;]" - .."list[current_player;craft;4,1;3,3;]" - .."list[current_player;craftpreview;7,2;1,1;]" - .."listring[current_player;main]" - .."listring[current_player;craft]", + formspec = "size[8,8.5]".. + default.gui_bg.. + default.gui_bg_img.. + default.gui_slots.. + default.get_hotbar_bg(0,4.25).. + "image[2,0.5;2,4;armor_preview]".. + "list[current_player;main;0,4.25;8,1;]".. + "list[current_player;main;0,5.5;8,3;8]".. + "list[current_player;craft;4,0.5;3,3;]".. + "list[current_player;craftpreview;7,1.5;1,1;]".. + "listring[current_player;main]".. + "listring[current_player;craft]", textures = {}, default_skin = "character", version = "0.4.7", @@ -265,7 +271,7 @@ armor.get_armor_formspec = function(self, name) minetest.log("error", "3d_armor: Armor def["..name.."] is nil [get_armor_formspec]") return "" end - local formspec = armor.formspec.."list[detached:"..name.."_armor;armor;0,1;2,3;]" + local formspec = armor.formspec.."list[detached:"..name.."_armor;armor;0,0.5;2,3;]" formspec = formspec:gsub("armor_preview", armor.textures[name].preview) formspec = formspec:gsub("armor_level", armor.def[name].level) formspec = formspec:gsub("armor_heal", armor.def[name].heal)