mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 06:29:25 -04:00
Complete implementation of stop block (#271)
* "Other scripts in stage" sb2 * Complete implementation of "stop" block
This commit is contained in:
parent
c45b420115
commit
3bfd755e60
4 changed files with 29 additions and 5 deletions
src/engine
|
@ -176,6 +176,15 @@ var execute = function (sequencer, thread) {
|
|||
startBranch: function (branchNum) {
|
||||
sequencer.stepToBranch(thread, branchNum);
|
||||
},
|
||||
stopAll: function () {
|
||||
runtime.stopAll();
|
||||
},
|
||||
stopOtherTargetThreads: function() {
|
||||
runtime.stopForTarget(target, thread);
|
||||
},
|
||||
stopThread: function() {
|
||||
sequencer.retireThread(thread);
|
||||
},
|
||||
startProcedure: function (procedureName) {
|
||||
sequencer.stepToProcedure(thread, procedureName);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue