mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
Real version of Clone.prototype.setVisible
This commit is contained in:
parent
1f19d7a209
commit
c650de8520
1 changed files with 4 additions and 7 deletions
|
@ -116,12 +116,9 @@ Clone.prototype.setSay = function (type, message) {
|
||||||
*/
|
*/
|
||||||
Clone.prototype.setVisible = function (visible) {
|
Clone.prototype.setVisible = function (visible) {
|
||||||
this.visible = visible;
|
this.visible = visible;
|
||||||
// @todo: Until visibility is implemented in the renderer, use a ghost.
|
self.renderer.updateDrawableProperties(this.drawableID, {
|
||||||
if (this.visible) {
|
visible: this.visible
|
||||||
this.setEffect('ghost', 0);
|
});
|
||||||
} else {
|
|
||||||
this.setEffect('ghost', 100);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue