Merge pull request #25 from bas080/master

Formspec of filters now have better aligned layout
This commit is contained in:
VanessaE 2013-04-03 07:06:45 -07:00
commit 7257c5532f

View File

@ -18,9 +18,9 @@ minetest.register_node("pipeworks:filter", {
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.env:get_meta(pos) local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", meta:set_string("formspec",
"invsize[9,9;]".. "invsize[8,6.5;]"..
"list[current_name;main;0,2;8,2;]".. "list[current_name;main;0,0;8,2;]"..
"list[current_player;main;0,5;8,4;]") "list[current_player;main;0,2.5;8,4;]")
meta:set_string("infotext", "Filter") meta:set_string("infotext", "Filter")
local inv = meta:get_inventory() local inv = meta:get_inventory()
inv:set_size("main", 8*4) inv:set_size("main", 8*4)
@ -113,9 +113,9 @@ minetest.register_node("pipeworks:mese_filter", {
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.env:get_meta(pos) local meta = minetest.env:get_meta(pos)
meta:set_string("formspec", meta:set_string("formspec",
"invsize[9,9;]".. "invsize[8,6.5;]"..
"list[current_name;main;0,2;8,2;]".. "list[current_name;main;0,0;8,2;]"..
"list[current_player;main;0,5;8,4;]") "list[current_player;main;0,2.5;8,4;]")
meta:set_string("infotext", "Mese filter") meta:set_string("infotext", "Mese filter")
local inv = meta:get_inventory() local inv = meta:get_inventory()
inv:set_size("main", 8*4) inv:set_size("main", 8*4)