kopia lustrzana https://github.com/backface/turtlestitch
fixed keyboard entry for script variable getters
rodzic
54d78c0415
commit
2b403974e1
|
@ -54,6 +54,7 @@
|
||||||
* objects, store: refactored block-migration mechanism
|
* objects, store: refactored block-migration mechanism
|
||||||
* gui: changed display of project name in the IDE to PROJECT (SCENE)
|
* gui: changed display of project name in the IDE to PROJECT (SCENE)
|
||||||
* gui: adjusted random color for new sprites to HSL model
|
* gui: adjusted random color for new sprites to HSL model
|
||||||
|
* objects: fixed keyboard entry for script variable getters
|
||||||
|
|
||||||
### 2021-11-08
|
### 2021-11-08
|
||||||
* objects: renamed some internal color methods
|
* objects: renamed some internal color methods
|
||||||
|
|
|
@ -3186,6 +3186,7 @@ SpriteMorph.prototype.allPaletteBlocks = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
||||||
|
var frame;
|
||||||
if (aBlock.isCustomBlock) {
|
if (aBlock.isCustomBlock) {
|
||||||
return (
|
return (
|
||||||
aBlock.isGlobal ? aBlock.definition
|
aBlock.isGlobal ? aBlock.definition
|
||||||
|
@ -3193,9 +3194,11 @@ SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
||||||
).isHelper;
|
).isHelper;
|
||||||
}
|
}
|
||||||
if (aBlock.selector === 'reportGetVar') {
|
if (aBlock.selector === 'reportGetVar') {
|
||||||
return this.variables.find(
|
frame = this.variables.silentFind(aBlock.blockSpec);
|
||||||
aBlock.blockSpec
|
if (!frame) {
|
||||||
).vars[aBlock.blockSpec].isHidden;
|
return false;
|
||||||
|
}
|
||||||
|
return frame.vars[aBlock.blockSpec].isHidden;
|
||||||
}
|
}
|
||||||
return StageMorph.prototype.hiddenPrimitives[aBlock.selector] === true;
|
return StageMorph.prototype.hiddenPrimitives[aBlock.selector] === true;
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue