drinks/formspecs.lua

16 lines
661 B
Lua
Raw Normal View History

2016-11-12 06:36:15 -08:00
function drinks.liquid_storage_formspec(fullness, max)
2016-10-30 17:59:51 -07:00
local formspec = -- Used for the liquid storing barrels.
'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 ->]'..
2016-11-12 06:36:15 -08:00
'label[.75,1.75;This is '..((fullness/max)*100)..'% full]'..
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