STOP "all scenes" dropdown option

snap8
Jens Mönig 2022-03-03 23:37:58 +01:00
rodzic 9be2b5f7a0
commit 7e7921256f
4 zmienionych plików z 21 dodań i 2 usunięć

Wyświetl plik

@ -5,6 +5,7 @@
* **New Features:**
* variadic commutative infix reporters
* shift-click on STOP button to stop all scenes
* STOP "all scenes" dropdown option
* **Notable Changes:**
* SciSnap2 extension update (FFT), thanks, Eckart!
* removed now redundant variadic reporters from the variadic reporters library
@ -17,6 +18,7 @@
* SciSnap2 extension update (FFT), thanks, Eckart!
* threads: removed experimental code
* scenes, gui: shift-click on STOP button to stop all scenes
* blocks, threads: STOP "all scenes" dropdown option
### 2022-03-02
* gui: never close a dev-warning

Wyświetl plik

@ -16,7 +16,7 @@
<script src="src/morphic.js?version=2022-01-28"></script>
<script src="src/symbols.js?version=2021-03-03"></script>
<script src="src/widgets.js?version=2021-17-09"></script>
<script src="src/blocks.js?version=2022-03-01"></script>
<script src="src/blocks.js?version=2022-03-03"></script>
<script src="src/threads.js?version=2022-03-03"></script>
<script src="src/objects.js?version=2022-03-01"></script>
<script src="src/scenes.js?version=2022-03-03"></script>

Wyświetl plik

@ -161,7 +161,7 @@ CostumeIconMorph, SoundIconMorph, SVG_Costume*/
// Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2022-March-01';
modules.blocks = '2022-March-03';
var SyntaxElementMorph;
var BlockMorph;
@ -705,6 +705,7 @@ SyntaxElementMorph.prototype.labelParts = {
tags: 'read-only static',
menu: {
'all' : ['all'],
'all scenes' : ['all scenes'],
'this script' : ['this script'],
'this block' : ['this block'],
'all but this script' : ['all but this script'],

Wyświetl plik

@ -2476,11 +2476,27 @@ Process.prototype.doStopAll = function () {
}
};
Process.prototype.doStopAllScenes = function () {
var ide;
if (this.homeContext.receiver) {
ide = this.homeContext.receiver.parentThatIsA(IDE_Morph);
ide.scenes.map(scn => {
if (scn !== ide.scene) {
scn.stop();
}
});
}
this.doStopAll();
};
Process.prototype.doStopThis = function (choice) {
switch (this.inputOption(choice)) {
case 'all':
this.doStopAll();
break;
case 'all scenes':
this.doStopAllScenes();
break;
case 'this script':
this.doStop();
break;