API phunlet for user-custom menu.
Default menu activation key:
ESC
Menu object (list):
[Title_string, Width_int, ItemCount_int, [item1_string, item2_string...], [item1_action, item2_action...]]
Example:
scene.my.menu = ["My menu", 10, 3, ["First item", "Second item", "Exit"], [{print("First item selected")},{print("Second item selected")}, {scene.my.menuClose}]]
Now you can summon this menu by menuOpen(menu, pos) command:
scene.my.menuOpen(scene.my.menu, app.mousePos)
Forum topic:
http://www.algodoo.com/fo … amp;t=3475
Demo scene:
http://www.algodoo.com/al … ails/51055