mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
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:
commit
6d7e9c3a0c
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue