Real version of Clone.prototype.setVisible

This commit is contained in:
Tim Mickel 2016-07-13 16:52:46 -04:00
parent 1f19d7a209
commit c650de8520

View file

@ -116,12 +116,9 @@ Clone.prototype.setSay = function (type, message) {
*/
Clone.prototype.setVisible = function (visible) {
this.visible = visible;
// @todo: Until visibility is implemented in the renderer, use a ghost.
if (this.visible) {
this.setEffect('ghost', 0);
} else {
this.setEffect('ghost', 100);
}
self.renderer.updateDrawableProperties(this.drawableID, {
visible: this.visible
});
};
/**