diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 01:34:12 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-04-11 01:34:12 -0400 |
commit | fcd9b0fbf434b65dc61442350e5371f0ee690d12 (patch) | |
tree | 1a3ea438d0561fd7e25304e47655f2617c2fcde7 | |
parent | 8f3d8cc5865b0d1ef8aafdd8908221bdebb79a25 (diff) | |
download | pipeworks-fcd9b0fbf434b65dc61442350e5371f0ee690d12.tar pipeworks-fcd9b0fbf434b65dc61442350e5371f0ee690d12.tar.gz pipeworks-fcd9b0fbf434b65dc61442350e5371f0ee690d12.tar.bz2 pipeworks-fcd9b0fbf434b65dc61442350e5371f0ee690d12.tar.xz pipeworks-fcd9b0fbf434b65dc61442350e5371f0ee690d12.zip |
adjust sorting tube formspec
to account for re-sized button on/off/interm images
-rw-r--r-- | sorting_tubes.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sorting_tubes.lua b/sorting_tubes.lua index 0d6ec2a..18d27e4 100644 --- a/sorting_tubes.lua +++ b/sorting_tubes.lua @@ -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]".. |