rocinantealpha

reference / interface

menu

A menu in a ui block that opens when it is clicked. Its block holds the entries, made with item, and is run only while the menu is open: menu "file" [ if item "save" [ ... ] ].

ui [  menu "file" [    if item "save" [ save "shot.png" ]    if item "quit" [ quit ]  ]]

How to write it

menu text [ ... ]

Related