kopia lustrzana https://github.com/backface/turtlestitch
added speech-balloon-value-association support for ASK menu items
rodzic
b60889344c
commit
9e426a685b
|
@ -31,6 +31,9 @@
|
|||
* **Translation Updates:**
|
||||
* German
|
||||
|
||||
### 2022-04-04
|
||||
* objects: added speech-balloon-value-association support for ASK menu items
|
||||
|
||||
### 2022-04-03
|
||||
* objects: added shortcut support for ASK menu items
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<script src="src/widgets.js?version=2021-17-09"></script>
|
||||
<script src="src/blocks.js?version=2022-03-31"></script>
|
||||
<script src="src/threads.js?version=2022-03-31"></script>
|
||||
<script src="src/objects.js?version=2022-04-03"></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-03-17"></script>
|
||||
<script src="src/paint.js?version=2021-07-05"></script>
|
||||
|
|
|
@ -93,7 +93,7 @@ BlockVisibilityDialogMorph, CostumeIconMorph, SoundIconMorph, MenuItemMorph*/
|
|||
|
||||
/*jshint esversion: 6*/
|
||||
|
||||
modules.objects = '2022-April-03';
|
||||
modules.objects = '2022-April-04';
|
||||
|
||||
var SpriteMorph;
|
||||
var StageMorph;
|
||||
|
@ -12885,33 +12885,29 @@ StagePickerMorph.prototype.init = function (options) {
|
|||
isLine = each.isEmpty();
|
||||
if (this.isLeftQuote(each)) {
|
||||
value = each.at(1);
|
||||
key = new SpriteBubbleMorph(
|
||||
value,
|
||||
null, // stage,
|
||||
null, // isThought,
|
||||
null // isQuestion
|
||||
);
|
||||
key = new SpriteBubbleMorph(value);
|
||||
} else if (this.isRightQuote(each)) {
|
||||
value = each.at(2);
|
||||
key = new SpriteBubbleMorph(
|
||||
value,
|
||||
null, // stage,
|
||||
false, // isThought,
|
||||
null // isQuestion
|
||||
);
|
||||
key = new SpriteBubbleMorph(value);
|
||||
key.isPointingRight = false;
|
||||
} else {
|
||||
key = each.at(1);
|
||||
if (key instanceof List) {
|
||||
if (this.isShortcut(key)) {
|
||||
if (this.isLeftQuote(key)) {
|
||||
key = new SpriteBubbleMorph(key.at(1));
|
||||
} else if (this.isRightQuote(key)) {
|
||||
key = new SpriteBubbleMorph(key.at(2));
|
||||
key.isPointingRight = false;
|
||||
} else if (this.isShortcut(key)) {
|
||||
this.addPair(
|
||||
key.at(1).toString(),
|
||||
each.at(2),
|
||||
key.at(2).toString()
|
||||
);
|
||||
return;
|
||||
} else {
|
||||
key = key.itemsArray();
|
||||
}
|
||||
key = key.itemsArray();
|
||||
}
|
||||
value = each.at(2);
|
||||
}
|
||||
|
@ -12960,6 +12956,8 @@ StagePickerMorph.prototype.isShortcut = function (key) {
|
|||
var types = ['text', 'number'];
|
||||
return key instanceof List &&
|
||||
(key.length() === 2) &&
|
||||
key.at(1) &&
|
||||
key.at(2) &&
|
||||
contains(types, Process.prototype.reportTypeOf(key.at(1))) &&
|
||||
contains(types, Process.prototype.reportTypeOf(key.at(2)));
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue