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:** * **New Features:**
* variadic commutative infix reporters * variadic commutative infix reporters
* shift-click on STOP button to stop all scenes * shift-click on STOP button to stop all scenes
* STOP "all scenes" dropdown option
* **Notable Changes:** * **Notable Changes:**
* SciSnap2 extension update (FFT), thanks, Eckart! * SciSnap2 extension update (FFT), thanks, Eckart!
* removed now redundant variadic reporters from the variadic reporters library * removed now redundant variadic reporters from the variadic reporters library
@ -17,6 +18,7 @@
* SciSnap2 extension update (FFT), thanks, Eckart! * SciSnap2 extension update (FFT), thanks, Eckart!
* threads: removed experimental code * threads: removed experimental code
* scenes, gui: shift-click on STOP button to stop all scenes * scenes, gui: shift-click on STOP button to stop all scenes
* blocks, threads: STOP "all scenes" dropdown option
### 2022-03-02 ### 2022-03-02
* gui: never close a dev-warning * 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/morphic.js?version=2022-01-28"></script>
<script src="src/symbols.js?version=2021-03-03"></script> <script src="src/symbols.js?version=2021-03-03"></script>
<script src="src/widgets.js?version=2021-17-09"></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/threads.js?version=2022-03-03"></script>
<script src="src/objects.js?version=2022-03-01"></script> <script src="src/objects.js?version=2022-03-01"></script>
<script src="src/scenes.js?version=2022-03-03"></script> <script src="src/scenes.js?version=2022-03-03"></script>

Wyświetl plik

@ -161,7 +161,7 @@ CostumeIconMorph, SoundIconMorph, SVG_Costume*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.blocks = '2022-March-01'; modules.blocks = '2022-March-03';
var SyntaxElementMorph; var SyntaxElementMorph;
var BlockMorph; var BlockMorph;
@ -705,6 +705,7 @@ SyntaxElementMorph.prototype.labelParts = {
tags: 'read-only static', tags: 'read-only static',
menu: { menu: {
'all' : ['all'], 'all' : ['all'],
'all scenes' : ['all scenes'],
'this script' : ['this script'], 'this script' : ['this script'],
'this block' : ['this block'], 'this block' : ['this block'],
'all but this script' : ['all but this script'], '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) { Process.prototype.doStopThis = function (choice) {
switch (this.inputOption(choice)) { switch (this.inputOption(choice)) {
case 'all': case 'all':
this.doStopAll(); this.doStopAll();
break; break;
case 'all scenes':
this.doStopAllScenes();
break;
case 'this script': case 'this script':
this.doStop(); this.doStop();
break; break;