kopia lustrzana https://github.com/backface/turtlestitch
gracefully hide & show the stage, fixed #281
rodzic
fdfd74f79e
commit
4e2ce9a4ee
|
@ -2155,4 +2155,8 @@ ______
|
||||||
* Objects: stop replacing the empty string with the number zero in watchers
|
* Objects: stop replacing the empty string with the number zero in watchers
|
||||||
* Threads: initialize new variables with zero (instead of null)
|
* Threads: initialize new variables with zero (instead of null)
|
||||||
* Objects: fixed #465
|
* Objects: fixed #465
|
||||||
* Threads: fixed #457
|
* Objects: fixed #457
|
||||||
|
|
||||||
|
140605
|
||||||
|
------
|
||||||
|
* Objects: gracefully hide & show the stage, fixed #281
|
||||||
|
|
19
objects.js
19
objects.js
|
@ -125,7 +125,7 @@ PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.objects = '2014-Jun-05';
|
modules.objects = '2014-Jun-06';
|
||||||
|
|
||||||
var SpriteMorph;
|
var SpriteMorph;
|
||||||
var StageMorph;
|
var StageMorph;
|
||||||
|
@ -5191,6 +5191,23 @@ StageMorph.prototype.thumbnail = function (extentPoint, excludedSprite) {
|
||||||
return trg;
|
return trg;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// StageMorph hiding and showing:
|
||||||
|
|
||||||
|
/*
|
||||||
|
override the inherited behavior to recursively hide/show all
|
||||||
|
children.
|
||||||
|
*/
|
||||||
|
|
||||||
|
StageMorph.prototype.hide = function () {
|
||||||
|
this.isVisible = false;
|
||||||
|
this.changed();
|
||||||
|
};
|
||||||
|
|
||||||
|
StageMorph.prototype.show = function () {
|
||||||
|
this.isVisible = true;
|
||||||
|
this.changed();
|
||||||
|
};
|
||||||
|
|
||||||
// StageMorph cloning overrice
|
// StageMorph cloning overrice
|
||||||
|
|
||||||
StageMorph.prototype.createClone = nop;
|
StageMorph.prototype.createClone = nop;
|
||||||
|
|
Ładowanie…
Reference in New Issue