Browse Search Popular Register Upload Rules User list Login:
Search:
User menu phunlet

Image:
screenshot of the scene

Author: Kilinich

Group: Phunlets

Filesize: 41.11 kB

Date added: 2011-01-25

Rating: 5

Downloads: 608

Views: 879

Comments: 2

Ratings: 1

Times favored: 1

Made with: Algodoo v2.0.2 Edu

Tags:

Scene tag

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
Last edited at 2012/01/05 12:49:04 by Kilinich
Please log in to rate this scene
edit
Similar scenes
Title: menu of algodoo effect
Rating: 5
Filesize: 32.13 kB
Downloads: 421
Comments: 2
Ratings: 1
Date added: 2013/07/14 11:18:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Data Transfer Cable Phunlet
Rating: 6.2
Filesize: 1.86 kB
Downloads: 510
Comments: 3
Ratings: 4
Date added: 2009/04/15 22:05:28
Made with: Phun
Rating: rated 6.2
download
Title: adhesion test
Rating: 5
Filesize: 22.23 kB
Downloads: 222
Comments: 0
Ratings: 1
Date added: 2016/08/26 17:27:39
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: User-A-Thon Day 1 Challenge 1 Continued (SERIOUSLY)
Rating: 5
Filesize: 2.29 MB
Downloads: 289
Comments: 8
Ratings: 1
Date added: 2016/04/26 03:21:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: [LCS] Portex PC 1.11 LRE
Rating: 5.1111
Filesize: 57.95 kB
Downloads: 470
Comments: 5
Ratings: 3
Date added: 2011/04/06 02:00:40
Made with: Algodoo before v1.8.5
Rating: rated 5.1
download
Title: Theo Jansen Mechanism (Phunlet Safe)
Rating: 5
Filesize: 29.87 kB
Downloads: 411
Comments: 1
Ratings: 1
Date added: 2012/05/12 22:53:56
Made with: Algodoo v1.8.5
Rating: rated 5
download
Весь конфиг сбросил...((((((
У меня тоже иногда это случается, но не каждый раз и я не могу понять когда именнно... давай попробуем найти закономерность.