Tweaks to furnace and chests backgrounds. Add background for copper chests.
@ -603,8 +603,8 @@ default.chest_formspec =
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"label[0,0;Wooden Chest]"..
|
||||
"background[-0.19,-0.25,;8.4,10.75;ui_form_bg.png]"..
|
||||
"background[0.06,0.99;7.92,4.0;ui_wooden_chest_inventory.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.png]"
|
||||
"background[0,1;8,4;ui_wooden_chest_inventory.png]"..
|
||||
"background[0,6;8,4;ui_main_inventory.png]"
|
||||
|
||||
function default.get_locked_chest_formspec(pos)
|
||||
local spos = pos.x .. "," .. pos.y .. "," ..pos.z
|
||||
@ -614,8 +614,8 @@ function default.get_locked_chest_formspec(pos)
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"label[0,0;Wooden Locked Chest]"..
|
||||
"background[-0.19,-0.25,;8.4,10.75;ui_form_bg.png]"..
|
||||
"background[0.06,0.99;7.92,4.0;ui_wooden_chest_inventory.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.png]"
|
||||
"background[0,1;8,4;ui_wooden_chest_inventory.png]"..
|
||||
"background[0,6;8,4;ui_main_inventory.png]"
|
||||
return formspec
|
||||
end
|
||||
|
||||
@ -755,8 +755,8 @@ function default.get_furnace_active_formspec(pos, percent)
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"label[0,0;Furnace]"..
|
||||
"background[-0.19,-0.25,;8.4,10.75;ui_form_bg.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.png]"..
|
||||
"background[0.06,0.99;7.92,4.0;ui_furnace_inventory.png]"
|
||||
"background[0,6;8,4;ui_main_inventory.png]"..
|
||||
"background[0,1;8,4;ui_furnace_inventory.png]"
|
||||
return formspec
|
||||
end
|
||||
|
||||
@ -769,8 +769,8 @@ default.furnace_inactive_formspec =
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"label[0,0;Furnace]"..
|
||||
"background[-0.19,-0.25,;8.4,10.75;ui_form_bg.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.png]"..
|
||||
"background[0.06,0.99;7.92,4.0;ui_furnace_inventory.png]"
|
||||
"background[0,6;8,4;ui_main_inventory.png]"..
|
||||
"background[0,1;8,4;ui_furnace_inventory.png]"
|
||||
|
||||
minetest.register_node("default:furnace", {
|
||||
description = "Furnace",
|
||||
|
@ -44,9 +44,13 @@ minetest.register_node(":technic:copper_chest", {
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"invsize[10,9;]"..
|
||||
"list[current_name;main;0,0;10,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
"invsize[10,10;]"..
|
||||
"label[0,0;Copper Chest]"..
|
||||
"list[current_name;main;0,1;10,4;]"..
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"background[-0.19,-0.25,;10.4,10.75;ui_form_bg.png]"..
|
||||
"background[0,1;10,4;ui_copper_chest_inventory.png]"..
|
||||
"background[0,6;8,4;ui_main_inventory.png]")
|
||||
meta:set_string("infotext", "Copper Chest")
|
||||
local inv = meta:get_inventory()
|
||||
inv:set_size("main", 10*4)
|
||||
@ -76,9 +80,13 @@ minetest.register_node(":technic:copper_locked_chest", {
|
||||
on_construct = function(pos)
|
||||
local meta = minetest.env:get_meta(pos)
|
||||
meta:set_string("formspec",
|
||||
"invsize[10,9;]"..
|
||||
"list[current_name;main;0,0;10,4;]"..
|
||||
"list[current_player;main;0,5;8,4;]")
|
||||
"invsize[10,10;]"..
|
||||
"label[0,0;Copper Locked Chest]"..
|
||||
"list[current_name;main;0,1;10,4;]"..
|
||||
"list[current_player;main;0,6;8,4;]"..
|
||||
"background[-0.19,-0.25,;10.4,10.75;ui_form_bg.png]"..
|
||||
"background[0,1;10,4;ui_copper_chest_inventory.png]"..
|
||||
"background[0,6;8,4;ui_main_inventory.png]")
|
||||
meta:set_string("infotext", "Copper Locked Chest")
|
||||
meta:set_string("owner", "")
|
||||
local inv = meta:get_inventory()
|
||||
|
@ -51,8 +51,8 @@ minetest.register_node(":technic: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.06,0.99;8.92,4.0;ui_iron_chest_inventory.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.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)
|
||||
@ -86,8 +86,8 @@ minetest.register_node(":technic: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.06,0.99;8.92,4.0;ui_iron_chest_inventory.png]"..
|
||||
"background[0.06,5.99;7.92,4.0;ui_main_inventory.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()
|
||||
|
BIN
mods/unified_inventory/textures/ui_copper_chest_inventory.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.2 KiB |
Before Width: | Height: | Size: 9.9 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 8.4 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.3 KiB |