formspecs.lua 696 B

1234567891011121314151617
  1. function drinks.liquid_storage_formspec(fruit_name, fullness, max)
  2. local formspec =
  3. 'size[8,8]'..
  4. 'label[0,0;Fill with the drink of your choice,]'..
  5. 'label[0,.4;you can only add more of the same type of drink.]'..
  6. 'label[4.5,1.2;Add liquid ->]'..
  7. 'label[.5,1.2;Storing '..fruit_name..' juice.]'..
  8. 'label[.5,1.65;Holding '..(fullness/2)..' of '..(max/2)..' cups.]'..
  9. 'label[4.5,2.25;Take liquid ->]'..
  10. 'label[2,3.2;(This empties the container completely)]'..
  11. 'button[0,3;2,1;purge;Purge]'..
  12. 'list[current_name;src;6.5,1;1,1;]'..
  13. 'list[current_name;dst;6.5,2;1,1;]'..
  14. 'list[current_player;main;0,4;8,5;]'
  15. return formspec
  16. end