diff options
| author | jmoenig <jens@moenig.org> | 2014-01-09 15:34:12 +0100 |
|---|---|---|
| committer | jmoenig <jens@moenig.org> | 2014-01-09 15:36:16 +0100 |
| commit | 8a1ca3116b834625e6f71c6376c115975d4f9d75 (patch) | |
| tree | e827c2f916f1f7bde9c6f038282bd909a6916617 /blocks.js | |
| parent | 4139efc35f2d36ca9088351f8ac32de9c2d6d4d1 (diff) | |
| download | snap-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.js | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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', |
