Browse Search Popular Register Upload Rules User list Login:
Search:
Drop Down Menu

Image:
screenshot of the scene

Author: s_noonan

Group: Technical

Filesize: 8.19 kB

Date added: 2019-01-30

Rating: 5

Downloads: 332

Views: 315

Comments: 5

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Drop Down Menu

Q: Is it fairly easy and straightforward for the average scripter to edit the data?
A: Maybe. This is how it works:

1. The drop down structure is determined by the _treeList structure.
2. The _treeList structure is a [myName:myNameCommand,[child0:child0Command, child1:child1Command, ...]] recursive structure.
3. The _doCommand executes the_treeList commands.
4. To make your own drop down menu, you need to modify only _treeList and _doCommand.

Rev A: _treeList now contains label and command.
Last edited at 2019/02/16 14:15:11 by s_noonan
Please log in to rate this scene
edit
Similar scenes
Title: menu of algodoo effect
Rating: 5
Filesize: 32.13 kB
Downloads: 607
Comments: 2
Ratings: 1
Date added: 2013/07/14 11:18:27
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: a tower for you to drop things off
Rating: 5
Filesize: 16.4 kB
Downloads: 646
Comments: 0
Ratings: 1
Date added: 2021/09/20 04:12:25
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: User menu phunlet
Rating: 5
Filesize: 41.11 kB
Downloads: 832
Comments: 2
Ratings: 1
Date added: 2011/01/25 11:43:46
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Menu save other mable race one 111
Rating: 5
Filesize: 146.74 kB
Downloads: 1003
Comments: 0
Ratings: 1
Date added: 2020/12/05 10:58:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Drop The BFDI Contestants!
Rating: 5
Filesize: 0.75 MB
Downloads: 684
Comments: 1
Ratings: 1
Date added: 2016/04/04 01:26:58
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: jet engine
Rating: 6.1333
Filesize: 56.11 kB
Downloads: 1567
Comments: 5
Ratings: 9
Date added: 2009/04/26 16:37:07
Made with: Phun
Rating: rated 6.1
download
This is awesome! Could be very useful for some scenes. Nice job....

Is it fairly easy and straightforward for the average scripter to edit the data? If not, then my suggestion is to make it so by adding some editing tools which don't require a PhD in computer science for the average person to understand and utilize. ;)
Q: Is it fairly easy and straightforward for the average scripter to edit the data?
A: Maybe. This is how it works:

1. The drop down structure is determined by the _treeList structure.
2. The _treeList structure is a [myName,[child0, child1, ...]] recursive structure.
3. The _commandList structure must match the _treeList structure.
4. The _doCommand executes the _commandList commands.
5. To make your own drop down menu, you need to modify only _treeList, _commandList, and _doCommand.
In answer #2, should that be "Sweet Child O' Mine"? I heard that Axl Rose and lead guitarist Slash are both very recursive.

OOPS, sorry, wrong child. My bad!



Thanks for the detailed explanation. :tup:
Last edited at 2019/01/31 03:11:13 by Xray
What is _treeList structure? How does it work?
Is there something about it on forum? If so, link please
Q: What is _treeList structure?
A: It's an Algodoo list structure that can be converted to a tree structure.

Q: How does it work?
A: See Python recursively printing a tree from a list structure.

Q: Is there something about it on forum?
A: Not that I know of.

Compare _treeList to the resulting drop down box structure to see how it works. You can change _treelist and then paste the _treeList list into _commandList if you just want to see how _treeList changes effect the drop down structure (since commands will no longer work unless you redefine them).