summaryrefslogtreecommitdiff
path: root/technic_chests/iron_chest.lua
diff options
context:
space:
mode:
authorRealBadAngel <mk@realbadangel.pl>2013-07-06 10:35:48 +0200
committerRealBadAngel <mk@realbadangel.pl>2013-07-06 10:35:48 +0200
commit3a3700537baa748e459258385d27bb79ab391546 (patch)
tree2538bee6f5e4fc6c3dd2c64953b949604bd7bfae /technic_chests/iron_chest.lua
parentb78b90d4223e01a5c8611105b125e91855bbf602 (diff)
Merge changes made in technic_game
Diffstat (limited to 'technic_chests/iron_chest.lua')
-rw-r--r--technic_chests/iron_chest.lua22
1 files changed, 15 insertions, 7 deletions
diff --git a/technic_chests/iron_chest.lua b/technic_chests/iron_chest.lua
index 3b71dfd..62a8ae3 100644
--- a/technic_chests/iron_chest.lua
+++ b/technic_chests/iron_chest.lua
@@ -46,9 +46,13 @@ minetest.register_node(":technic:iron_chest", {
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec",
- "invsize[9,9;]"..
- "list[current_name;main;0,0;9,4;]"..
- "list[current_player;main;0,5;8,4;]")
+ "invsize[9,10;]"..
+ "label[0,0;Iron Chest]"..
+ "list[current_name;main;0,1;9,4;]"..
+ "list[current_player;main;0,6;8,4;]"..
+ "background[-0.19,-0.25;9.4,10.75;ui_form_bg.png]"..
+ "background[0,1;9,4;ui_iron_chest_inventory.png]"..
+ "background[0,6;8,4;ui_main_inventory.png]")
meta:set_string("infotext", "Iron Chest")
local inv = meta:get_inventory()
inv:set_size("main", 9*4)
@@ -72,14 +76,18 @@ minetest.register_node(":technic:iron_locked_chest", {
local meta = minetest.env:get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "")
meta:set_string("infotext", "Locked Iron Chest (owned by "..
- meta:get_string("owner")..")")
+ meta:get_string("owner")..")")
end,
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
meta:set_string("formspec",
- "invsize[9,9;]"..
- "list[current_name;main;0,0;9,4;]"..
- "list[current_player;main;0,5;8,4;]")
+ "invsize[9,10;]"..
+ "label[0,0;Iron Locked Chest]"..
+ "list[current_name;main;0,1;9,4;]"..
+ "list[current_player;main;0,6;8,4;]"..
+ "background[-0.19,-0.25;9.4,10.75;ui_form_bg.png]"..
+ "background[0,1;9,4;ui_iron_chest_inventory.png]"..
+ "background[0,6;8,4;ui_main_inventory.png]")
meta:set_string("infotext", "Iron Locked Chest")
meta:set_string("owner", "")
local inv = meta:get_inventory()