mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Merge pull request #25 from LLK/feature/stop-block
Implement stop block
This commit is contained in:
commit
326e03b5d2
3 changed files with 7 additions and 3 deletions
|
@ -51,6 +51,8 @@ Scratch3Blocks.prototype.wait = function(argValues, util) {
|
||||||
|
|
||||||
Scratch3Blocks.prototype.stop = function() {
|
Scratch3Blocks.prototype.stop = function() {
|
||||||
console.log('Running: control_stop');
|
console.log('Running: control_stop');
|
||||||
|
// @todo - don't use this.runtime
|
||||||
|
this.runtime.stopAll();
|
||||||
};
|
};
|
||||||
|
|
||||||
Scratch3Blocks.prototype.whenFlagClicked = function() {
|
Scratch3Blocks.prototype.whenFlagClicked = function() {
|
||||||
|
|
2
vm.js
2
vm.js
|
@ -2032,6 +2032,8 @@
|
||||||
|
|
||||||
Scratch3Blocks.prototype.stop = function() {
|
Scratch3Blocks.prototype.stop = function() {
|
||||||
console.log('Running: control_stop');
|
console.log('Running: control_stop');
|
||||||
|
// @todo - don't use this.runtime
|
||||||
|
this.runtime.stopAll();
|
||||||
};
|
};
|
||||||
|
|
||||||
Scratch3Blocks.prototype.whenFlagClicked = function() {
|
Scratch3Blocks.prototype.whenFlagClicked = function() {
|
||||||
|
|
6
vm.min.js
vendored
6
vm.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue