1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-11-16 07:20:34 +01:00

add i3 styled vacuum tube

This commit is contained in:
unknown 2022-04-13 00:00:02 -04:00
parent 26db573e80
commit c188a18cba

View File

@ -40,8 +40,13 @@ if pipeworks.enable_mese_sand_tube then
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
meta:set_int("dist", 0) meta:set_int("dist", 0)
local prepend = ""
if minetest.get_modpath("i3") then
prepend = "no_prepend[]bgcolor[black;neither]background9[0,0;6.0,2.2;i3_bg_full.png;false;10]"
end
meta:set_string("formspec", meta:set_string("formspec",
"size[6.0,2.2]".. "size[6.0,2.2]"..
prepend ..
"image[0.2,0;1,1;pipeworks_mese_sand_tube_inv.png]".. "image[0.2,0;1,1;pipeworks_mese_sand_tube_inv.png]"..
"label[1.2,0.2;"..S("Adjustable Vacuuming Tube").."]".. "label[1.2,0.2;"..S("Adjustable Vacuuming Tube").."]"..
"field[0.5,1.6;2.1,1;dist;"..S("Radius")..";${dist}]".. "field[0.5,1.6;2.1,1;dist;"..S("Radius")..";${dist}]"..