summaryrefslogtreecommitdiff
path: root/blocks.js
diff options
context:
space:
mode:
authorjmoenig <jens@moenig.org>2014-01-09 15:34:12 +0100
committerjmoenig <jens@moenig.org>2014-01-09 15:36:16 +0100
commit8a1ca3116b834625e6f71c6376c115975d4f9d75 (patch)
treee827c2f916f1f7bde9c6f038282bd909a6916617 /blocks.js
parent4139efc35f2d36ca9088351f8ac32de9c2d6d4d1 (diff)
downloadsnap-8a1ca3116b834625e6f71c6376c115975d4f9d75.tar.gz
snap-8a1ca3116b834625e6f71c6376c115975d4f9d75.zip
Collapse STOP primitives into a single block with a dropdown of options
Diffstat (limited to 'blocks.js')
-rw-r--r--blocks.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/blocks.js b/blocks.js
index 1ad2239..9997d70 100644
--- a/blocks.js
+++ b/blocks.js
@@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/
// Global stuff ////////////////////////////////////////////////////////
-modules.blocks = '2014-January-08';
+modules.blocks = '2014-January-09';
var SyntaxElementMorph;
var BlockMorph;
@@ -1037,6 +1037,20 @@ SyntaxElementMorph.prototype.labelPart = function (spec) {
);
part.setContents(['encode URI']);
break;
+ case '%stopChoices':
+ part = new InputSlotMorph(
+ null,
+ false,
+ {
+ 'all' : ['all'],
+ 'this script' : ['this script'],
+ 'this block' : ['this block']
+ },
+ true
+ );
+ part.setContents(['all']);
+ part.isStatic = true;
+ break;
case '%stopOthersChoices':
part = new InputSlotMorph(
null,
@@ -3279,6 +3293,7 @@ CommandBlockMorph.prototype.snap = function () {
CommandBlockMorph.prototype.isStop = function () {
return ([
+ 'doStopThis',
'doStop',
'doStopBlock',
'doStopAll',