kopia lustrzana https://github.com/backface/turtlestitch
tweaked hiding / showing inherited local blocks
rodzic
5eaef5b65d
commit
4f3cd192cc
|
@ -43,6 +43,7 @@
|
||||||
* objects: tweaked variable block visibility
|
* objects: tweaked variable block visibility
|
||||||
* objects: filter hidden blocks out from search / keyboard input results
|
* objects: filter hidden blocks out from search / keyboard input results
|
||||||
* objects: prevent deprecated "message" reporter from showing up in search results
|
* objects: prevent deprecated "message" reporter from showing up in search results
|
||||||
|
* objects: tweaked hiding / showing inherited local blocks
|
||||||
|
|
||||||
### 2021-10-07
|
### 2021-10-07
|
||||||
* objects, byob: new BlockVisibilityDialogMorph for bulk-selecting blocks to hide / show in the palette
|
* objects, byob: new BlockVisibilityDialogMorph for bulk-selecting blocks to hide / show in the palette
|
||||||
|
|
|
@ -3167,7 +3167,7 @@ SpriteMorph.prototype.isHidingBlock = function (aBlock) {
|
||||||
if (aBlock.isCustomBlock) {
|
if (aBlock.isCustomBlock) {
|
||||||
return (
|
return (
|
||||||
aBlock.isGlobal ? aBlock.definition
|
aBlock.isGlobal ? aBlock.definition
|
||||||
: this.getLocalMethod(aBlock.semanticSpec)
|
: this.getMethod(aBlock.semanticSpec)
|
||||||
).isHelper;
|
).isHelper;
|
||||||
}
|
}
|
||||||
if (aBlock.selector === 'reportGetVar') {
|
if (aBlock.selector === 'reportGetVar') {
|
||||||
|
@ -3182,7 +3182,7 @@ SpriteMorph.prototype.changeBlockVisibility = function (aBlock, hideIt, quick) {
|
||||||
var ide, dict, cat;
|
var ide, dict, cat;
|
||||||
if (aBlock.isCustomBlock) {
|
if (aBlock.isCustomBlock) {
|
||||||
(aBlock.isGlobal ? aBlock.definition
|
(aBlock.isGlobal ? aBlock.definition
|
||||||
: this.getLocalMethod(aBlock.semanticSpec)
|
: this.getMethod(aBlock.semanticSpec)
|
||||||
).isHelper = !!hideIt;
|
).isHelper = !!hideIt;
|
||||||
} else if (aBlock.selector === 'reportGetVar') {
|
} else if (aBlock.selector === 'reportGetVar') {
|
||||||
this.variables.find(
|
this.variables.find(
|
||||||
|
|
Ładowanie…
Reference in New Issue