From 8f2badeec385eeb6c8d7b0da07e6393c2fbb22fb Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 1 Jul 2015 19:21:14 +0100 Subject: [PATCH] Add support for unified inventory 'lite' mode --- 3d_armor/armor.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index a932ac5..69534f0 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -102,6 +102,15 @@ elseif minetest.get_modpath("unified_inventory") then .."label[5,1;Level: "..armor.def[name].level.."]" .."label[5,1.5;Heal: "..armor.def[name].heal.."]" .."label[5,2;Fire: "..armor.def[name].fire.."]" + if minetest.setting_getbool("unified_inventory_lite") then + formspec = "background[0.06,0.49;7.92,7.52;3d_armor_ui_form.png]" + .."label[0,0;Armor]" + .."list[detached:"..name.."_armor;armor;0,0.5;2,3;]" + .."image[2.5,0.25;2,4;"..armor.textures[name].preview.."]" + .."label[5,0.5;Level: "..armor.def[name].level.."]" + .."label[5,1;Heal: "..armor.def[name].heal.."]" + .."label[5,1.5;Fire: "..armor.def[name].fire.."]" + end return {formspec=formspec} end, })