adjust sorting tube formspec

to account for re-sized button on/off/interm images
This commit is contained in:
Vanessa Ezekowitz 2017-04-11 01:34:12 -04:00
parent 8f3d8cc586
commit fcd9b0fbf4
1 changed files with 6 additions and 2 deletions

View File

@ -15,8 +15,12 @@ if pipeworks.enable_mese_tube then
local buttons_formspec = ""
for i = 0, 5 do
buttons_formspec = buttons_formspec .. fs_helpers.cycling_button(meta,
"image_button[7,"..(i)..";1,1", "l"..(i+1).."s",
{{text="",texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"}, {text="",texture="pipeworks_button_on.png", addopts="false;false;pipeworks_button_interm.png"}})
"image_button[7,"..(i+0.2)..";1,0.6", "l"..(i+1).."s",
{
{text="",texture="pipeworks_button_off.png", addopts="false;false;pipeworks_button_interm.png"},
{text="",texture="pipeworks_button_on.png", addopts="false;false;pipeworks_button_interm.png"}
}
)
end
meta:set_string("formspec",
"size[8,11]"..