mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-05-13 22:30:21 +02:00
add mese tube
This commit is contained in:
parent
ed653131bc
commit
669a8c03b1
@ -16,29 +16,43 @@ if pipeworks.enable_mese_tube then
|
|||||||
local buttons_formspec = ""
|
local buttons_formspec = ""
|
||||||
for i = 0, 5 do
|
for i = 0, 5 do
|
||||||
buttons_formspec = buttons_formspec .. fs_helpers.cycling_button(meta,
|
buttons_formspec = buttons_formspec .. fs_helpers.cycling_button(meta,
|
||||||
"image_button[7,"..(i+0.2)..";1,0.6", "l"..(i+1).."s",
|
"image_button[9,"..(i+(i*0.25)+0.5)..";1,0.6", "l"..(i+1).."s",
|
||||||
{
|
{
|
||||||
pipeworks.button_off,
|
pipeworks.button_off,
|
||||||
pipeworks.button_on
|
pipeworks.button_on
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
local list_backgrounds = ""
|
||||||
|
if minetest.get_modpath("i3") then
|
||||||
|
list_backgrounds = "style_type[box;colors=#666]"
|
||||||
|
for i=0, 5 do
|
||||||
|
for j=0, 5 do
|
||||||
|
list_backgrounds = list_backgrounds .. "box[".. 1.5+(i*1.25) ..",".. 0.25+(j*1.25) ..";1,1;]"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
local size = "10.2,13"
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[8,11]"..
|
"formspec_version[2]"..
|
||||||
"list[context;line1;1,0;6,1;]"..
|
"size["..size.."]"..
|
||||||
"list[context;line2;1,1;6,1;]"..
|
pipeworks.fs_helpers.get_prepends(size)..
|
||||||
"list[context;line3;1,2;6,1;]"..
|
"list[context;line1;1.5,0.25;6,1;]"..
|
||||||
"list[context;line4;1,3;6,1;]"..
|
"list[context;line2;1.5,1.50;6,1;]"..
|
||||||
"list[context;line5;1,4;6,1;]"..
|
"list[context;line3;1.5,2.75;6,1;]"..
|
||||||
"list[context;line6;1,5;6,1;]"..
|
"list[context;line4;1.5,4.00;6,1;]"..
|
||||||
"image[0,0;1,1;pipeworks_white.png]"..
|
"list[context;line5;1.5,5.25;6,1;]"..
|
||||||
"image[0,1;1,1;pipeworks_black.png]"..
|
"list[context;line6;1.5,6.50;6,1;]"..
|
||||||
"image[0,2;1,1;pipeworks_green.png]"..
|
list_backgrounds..
|
||||||
"image[0,3;1,1;pipeworks_yellow.png]"..
|
"image[0.22,0.25;1,1;pipeworks_white.png]"..
|
||||||
"image[0,4;1,1;pipeworks_blue.png]"..
|
"image[0.22,1.50;1,1;pipeworks_black.png]"..
|
||||||
"image[0,5;1,1;pipeworks_red.png]"..
|
"image[0.22,2.75;1,1;pipeworks_green.png]"..
|
||||||
|
"image[0.22,4.00;1,1;pipeworks_yellow.png]"..
|
||||||
|
"image[0.22,5.25;1,1;pipeworks_blue.png]"..
|
||||||
|
"image[0.22,6.50;1,1;pipeworks_red.png]"..
|
||||||
buttons_formspec..
|
buttons_formspec..
|
||||||
"list[current_player;main;0,7;8,4;]" ..
|
--"list[current_player;main;0,8;8,4;]" ..
|
||||||
|
pipeworks.fs_helpers.get_inv(8)..
|
||||||
"listring[current_player;main]" ..
|
"listring[current_player;main]" ..
|
||||||
"listring[current_player;main]" ..
|
"listring[current_player;main]" ..
|
||||||
"listring[context;line1]" ..
|
"listring[context;line1]" ..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user