forked from mtcontrib/pipeworks
adjust sorting tube formspec
to account for re-sized button on/off/interm images
This commit is contained in:
parent
8f3d8cc586
commit
fcd9b0fbf4
|
@ -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]"..
|
||||
|
|
Loading…
Reference in New Issue
Block a user