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
|
||||
* gui: changed display of project name in the IDE to PROJECT (SCENE)
|
||||
* gui: adjusted random color for new sprites to HSL model
|
||||
* objects: fixed keyboard entry for script variable getters
|
||||
|
||||
### 2021-11-08
|
||||
* objects: renamed some internal color methods
|
||||
|
|
|
@ -3186,6 +3186,7 @@ SpriteMorph.prototype.allPaletteBlocks = function () {
|
|||
};
|
||||
|
||||
SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
||||
var frame;
|
||||
if (aBlock.isCustomBlock) {
|
||||
return (
|
||||
aBlock.isGlobal ? aBlock.definition
|
||||
|
@ -3193,9 +3194,11 @@ SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
|||
).isHelper;
|
||||
}
|
||||
if (aBlock.selector === 'reportGetVar') {
|
||||
return this.variables.find(
|
||||
aBlock.blockSpec
|
||||
).vars[aBlock.blockSpec].isHidden;
|
||||
frame = this.variables.silentFind(aBlock.blockSpec);
|
||||
if (!frame) {
|
||||
return false;
|
||||
}
|
||||
return frame.vars[aBlock.blockSpec].isHidden;
|
||||
}
|
||||
return StageMorph.prototype.hiddenPrimitives[aBlock.selector] === true;
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue