From 19e297a2e8a04824eafec7d0d3389c2caf8bc819 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 3 Mar 2017 17:59:31 +0000 Subject: [PATCH] Update inventory_plus formspec style --- 3d_armor/armor.lua | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 13d7e8e..aeaccdc 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -75,13 +75,18 @@ armor = { if minetest.get_modpath("inventory_plus") then inv_mod = "inventory_plus" - armor.formspec = "size[8,8.5]button[0,0;2,0.5;main;Back]" - .."image[2.5,0.75;2,4;armor_preview]" - .."label[5,1;Level: armor_level]" - .."label[5,1.5;Heal: armor_heal]" - .."label[5,2;Fire: armor_fire]" - .."label[5,2.5;Radiation: armor_radiation]" - .."list[current_player;main;0,4.5;8,4;]" + armor.formspec = "size[8,8.5]button[6,0;2,0.5;main;Back]".. + default.gui_bg.. + default.gui_bg_img.. + default.gui_slots.. + default.get_hotbar_bg(0,4.25).. + "image[2.5,0;2,4;armor_preview]".. + "label[5,1;Level: armor_level]".. + "label[5,1.5;Heal: armor_heal]".. + "label[5,2;Fire: armor_fire]".. + "label[5,2.5;Radiation: armor_radiation]".. + "list[current_player;main;0,4.25;8,1;]".. + "list[current_player;main;0,5.5;8,3;8]" if minetest.get_modpath("crafting") then inventory_plus.get_formspec = function(player, page) end