summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2015-02-23 14:55:30 +0100
committerjmoenig <jens@moenig.org>2015-02-23 14:55:30 +0100
commite5e216ccf2fbefd66885436220109c2a703413c6 (patch)
tree4a0314e06533d4a085f6c83679758ac07556196c /blocks.js
parent662a743f4ed564f2c296e2370c555ca44e12116d (diff)
downloadsnap-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.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/blocks.js b/blocks.js
index e56d0ed..72aa5d0 100644
--- a/blocks.js
+++ b/blocks.js
@@ -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