drinks/formspecs.lua

17 lines
696 B
Lua
Raw Permalink Normal View History

function drinks.liquid_storage_formspec(fruit_name, fullness, max)
local formspec =
2016-10-30 17:59:51 -07:00
'size[8,8]'..
2016-11-12 06:36:15 -08:00
'label[0,0;Fill with the drink of your choice,]'..
2016-10-30 17:59:51 -07:00
'label[0,.4;you can only add more of the same type of drink.]'..
'label[4.5,1.2;Add liquid ->]'..
'label[.5,1.2;Storing '..fruit_name..' juice.]'..
'label[.5,1.65;Holding '..(fullness/2)..' of '..(max/2)..' cups.]'..
2016-10-30 17:59:51 -07:00
'label[4.5,2.25;Take liquid ->]'..
2016-11-12 06:36:15 -08:00
'label[2,3.2;(This empties the container completely)]'..
2016-11-11 09:54:58 -08:00
'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