Merge pull request #289 from nathan/stop-in-middle-of-script

Fixed allowing stop block to be placed in the middle of a script
This commit is contained in:
Shane M. Clements 2014-06-18 11:56:25 +02:00
commit 6d7e9c3a0c

View file

@ -399,7 +399,7 @@ public class BlockMenus implements DragClient {
m.addItem('record...', recordSound);
showMenu(m);
}
private function recordSound():void {
app.setTab('sounds');
app.soundsPart.recordSound();
@ -447,8 +447,10 @@ public class BlockMenus implements DragClient {
Scratch.app.setSaveNeeded();
}
var m:Menu = new Menu(setStopType, 'stop');
m.addItem('all');
m.addItem('this script');
if (!block.nextBlock) {
m.addItem('all');
m.addItem('this script');
}
m.addItem(app.viewedObj().isStage ? 'other scripts in stage' : 'other scripts in sprite');
showMenu(m);
}