jmoenig / Snap

a visual programming language inspired by Scratch
http://snap.berkeley.edu
GNU Affero General Public License v3.0
1.48k stars 739 forks source link

Ability to Build a Custom Block with a drop down? #198

Closed cycomachead closed 10 years ago

cycomachead commented 10 years ago

Would it be possible to have a custom block have a drop down menu like many built in blocks? It could be really handy in some cases.

jmoenig commented 10 years ago

I've now added this feature recently. Does it provide all you need? Thanks

cycomachead commented 10 years ago

Yeah, I've been playing around with it and it's pretty cool! :)

studej commented 10 years ago

I have problem with some special chars which I want to use in custom enumeration. Project can't be opened without error after I saved custom block with enumeration from images below:

custom_enum_1

custom_enum2

I know why there is "close" instead of "=". It will be nice to have different separator for default value, but I don't know which one is proper one ("==" can be inappropirate too in special cases...).

There are actually three errors, but I can't remember how I found that last one. That last error contains "=" in message...

Added: Note that if you have enumeration only with "close" constant ("=") then project can be opened without problem, but you can't choose "close" constant from enumeration.

studej commented 10 years ago

Can we add option with special char sequence (eg. "-----") to split enum constants with line as in BYOB "attribute" block or Snap! "of" block?