drinks/formspecs.lua

16 lines
663 B
Lua

function drinks.barrel_formspec(fullness)
local formspec = -- Used for the liquid storing barrels.
'size[8,8]'..
'label[0,0;Fill the barrel with the drink of your choice,]'..
'label[0,.4;you can only add more of the same type of drink.]'..
'label[4.5,1.2;Add liquid ->]'..
'label[.75,1.75;This barrel is '..((fullness/128)*100)..'% full]'..
'label[4.5,2.25;Take liquid ->]'..
'label[2,3.2;(This empties the barrel completely)]'..
'button[0,3;2,1;purge;Purge]'..
'list[current_name;src;6.5,1;1,1;]'..
'list[current_name;dst;6.5,2;1,1;]'..
'list[current_player;main;0,4;8,5;]'
return formspec
end