kopia lustrzana https://github.com/backface/turtlestitch
ASK nothing or a falsy value terminates the thread currently displaying a question
rodzic
44e1362f34
commit
9130e249a1
|
@ -4,6 +4,7 @@
|
|||
* **New Features:**
|
||||
* passing a list to the ASK command in sensing presents a menu to the user
|
||||
* formatting a list of texts displays it as chat-history in an ASK menu
|
||||
* ASK nothing or a falsy value terminates the thread currently displaying a question
|
||||
* new "Menus" library
|
||||
* export script (including dependencies) via its context menu
|
||||
* export / import sprite-local custom block definitions from the palette
|
||||
|
@ -39,6 +40,9 @@
|
|||
* **Translation Updates:**
|
||||
* German
|
||||
|
||||
### 2022-04-19
|
||||
* threads: ASK nothing or a falsy value terminates the thread currently displaying a question
|
||||
|
||||
### 2022-04-08
|
||||
* blocks, threads: added new "label" selector to OF BLOCK's block dropdown
|
||||
* German translation update for "label"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<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-04-08"></script>
|
||||
<script src="src/threads.js?version=2022-04-08"></script>
|
||||
<script src="src/threads.js?version=2022-04-19"></script>
|
||||
<script src="src/objects.js?version=2022-04-04"></script>
|
||||
<script src="src/scenes.js?version=2022-03-03"></script>
|
||||
<script src="src/gui.js?version=2022-04-06"></script>
|
||||
|
|
|
@ -65,7 +65,7 @@ StagePickerMorph*/
|
|||
|
||||
/*jshint esversion: 6, bitwise: false, evil: true*/
|
||||
|
||||
modules.threads = '2022-April-08';
|
||||
modules.threads = '2022-April-19';
|
||||
|
||||
var ThreadManager;
|
||||
var Process;
|
||||
|
@ -3699,6 +3699,13 @@ Process.prototype.doAsk = function (data) {
|
|||
this.prompter.inputField.edit();
|
||||
stage.changed();
|
||||
}
|
||||
} else if (!data) {
|
||||
// terminate the processes currently asking a question
|
||||
// making way for the next one waiting to ask one
|
||||
stage.threads.processes.filter(proc =>
|
||||
proc.prompter && !proc.prompter.isDone
|
||||
).forEach(proc => proc.stop());
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (this.prompter.isDone) {
|
||||
|
|
Ładowanie…
Reference in New Issue