Remove default formspec background and adjust slotcolor

master
PilzAdam 2013-11-03 23:18:26 +01:00
parent 8587de9026
commit 944b943f12
4 changed files with 14 additions and 1 deletions

View File

@ -8,6 +8,8 @@ minetest.register_on_joinplayer(function(player)
"size[5,1;]"..
"list[current_player;main;0,0;5,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;5.125,1.125;backpack_inventory_background.png]"..
"background[0,0;5,1;backpack_inventory.png]"
)
@ -89,6 +91,8 @@ minetest.register_node("backpack:backpack", {
"list[current_player;craft;0.5,0;3,3;]"..
"list[current_player;craftpreview;3.5,1;1,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;5.125,8.625;backpack_formspec_background.png]"..
"background[0,3.5;5,1;backpack_inventory.png]"..
"background[0,4.5;5,4;backpack_formspec_inventory.png]"..

View File

@ -496,6 +496,8 @@ local furnace_inactive_formspec =
"list[current_name;dst;2.5,0;2,2;]"..
"list[current_player;main;0,3.5;5,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;5.125,4.625;base_furnace_formspec_background.png]"..
"background[0,3.5;5,1;backpack_inventory.png]"..
"background[0.5,0;4,3;base_furnace_formspec_inventory.png]"
@ -776,6 +778,8 @@ minetest.register_abm({
"list[current_name;dst;2.5,0;2,2;]"..
"list[current_player;main;0,3.5;5,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;5.125,4.625;base_furnace_formspec_background.png]"..
"background[0,3.5;5,1;backpack_inventory.png]"..
"background[0.5,0;4,3;base_furnace_formspec_inventory.png]"
@ -836,6 +840,8 @@ minetest.register_node("base:chest", {
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;1.5,4.5;5,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;8.125,5.625;base_chest_formspec_background.png]"..
"background[1.5,4.5;5,1;backpack_inventory.png]"..
"background[0,0;8,4;base_chest_formspec_inventory.png]"

View File

@ -81,6 +81,8 @@ minetest.register_on_dieplayer(function(player)
"list[current_name;main;0,0;5,1;]"..
"list[current_player;main;0,1.5;5,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;5.125,2.625;bones_formspec_background.png]"..
"background[0,0;5,1;backpack_inventory.png]"..
"background[0,1.5;5,1;backpack_inventory.png]"

View File

@ -81,7 +81,6 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
local pagemax = math.floor((creative_inventory.creative_inventory_size-1) / (6*4) + 1)
player:set_inventory_formspec(
"size[13,7.5]"..
--"image[6,0.6;1,2;player.png]"..
"list[current_player;main;5,3.5;8,4;]"..
"list[current_player;craft;8,0;3,3;]"..
"list[current_player;craftpreview;12,1;1,1;]"..
@ -92,6 +91,8 @@ creative_inventory.set_creative_formspec = function(player, start_i, pagenum)
"label[5,1.5;Trash:]"..
"list[detached:creative_trash;main;5,2;1,1;]"..
"listcolors[#0000;#CCC6]"..
"bgcolor[#0000;false]"..
"background[-0.0625,-0.0625;13.125,7.625;creative_formspec_background.png]"..
"background[0,0;13,7.5;creative_formspec_inventory.png]"
)