diff options
| author | jmoenig <jens@moenig.org> | 2015-02-23 14:55:30 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2015-02-23 14:55:30 +0100 |
| commit | e5e216ccf2fbefd66885436220109c2a703413c6 (patch) | |
| tree | 4a0314e06533d4a085f6c83679758ac07556196c /blocks.js | |
| parent | 662a743f4ed564f2c296e2370c555ca44e12116d (diff) | |
| download | snap-yow-e5e216ccf2fbefd66885436220109c2a703413c6.tar.gz snap-yow-e5e216ccf2fbefd66885436220109c2a703413c6.zip | |
Add user-interaction choices to the “When I am ...” hat block
“clicked”, “pressed”, “dropped”, “mouse-entered”, “mouse-departed”
Diffstat (limited to 'blocks.js')
| -rw-r--r-- | blocks.js | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-November-21'; +modules.blocks = '2015-February-23'; var SyntaxElementMorph; @@ -848,6 +848,20 @@ SyntaxElementMorph.prototype.labelPart = function (spec) { true // read-only ); break; + case '%interaction': + part = new InputSlotMorph( + null, // text + false, // numeric? + { + 'clicked' : ['clicked'], + 'pressed' : ['pressed'], + 'dropped' : ['dropped'], + 'mouse-entered' : ['mouse-entered'], + 'mouse-departed' : ['mouse-departed'] + }, + true // read-only + ); + break; case '%dates': part = new InputSlotMorph( null, // text |
