Replace deprecated invsize[] with size[]
| | |
| | | } |
| | | |
| | | local cnc_formspec = |
| | | "invsize[9,11;]".. |
| | | "size[9,11;]".. |
| | | "label[1,0;"..S("Choose Milling Program:").."]".. |
| | | "image_button[1,0.5;1,1;technic_cnc_slope.png;slope; ]".. |
| | | "image_button[2,0.5;1,1;technic_cnc_slope_edge.png;slope_edge; ]".. |
| | |
| | | local workshop_demand = {5000, 3500, 2000} |
| | | |
| | | local workshop_formspec = |
| | | "invsize[8,9;]".. |
| | | "size[8,9;]".. |
| | | "list[current_name;src;3,1;1,1;]".. |
| | | "label[0,0;"..S("%s Tool Workshop"):format("MV").."]".. |
| | | "list[current_name;upgrade1;1,3;1,1;]".. |
| | |
| | | local function set_injector_formspec(meta) |
| | | local is_stack = meta:get_string("mode") == "whole stacks" |
| | | meta:set_string("formspec", |
| | | "invsize[8,9;]".. |
| | | "size[8,9;]".. |
| | | "item_image[0,0;1,1;technic:injector]".. |
| | | "label[1,0;"..S("Self-Contained Injector").."]".. |
| | | (is_stack and |
| | |
| | | for k, v in pairs(groups) do active_groups[k] = v end |
| | | |
| | | local generator_formspec = |
| | | "invsize[8,9;]".. |
| | | "size[8,9;]".. |
| | | "label[0,0;"..S("Fuel-Fired %s Generator"):format(tier).."]".. |
| | | "list[current_name;src;3,1;1,1;]".. |
| | | "image[4,1;1,1;default_furnace_fire_bg.png]".. |
| | |
| | | for k, v in pairs(groups) do active_groups[k] = v end |
| | | |
| | | local formspec = |
| | | "invsize[8,9;]".. |
| | | "size[8,9;]".. |
| | | "list[current_name;src;"..(4-input_size)..",1;"..input_size..",1;]".. |
| | | "list[current_name;dst;5,1;2,2;]".. |
| | | "list[current_player;main;0,5;8,4;]".. |