tweaked inheritance indication for stage watchers

upd4.1
Jens Mönig 2017-07-11 09:21:51 +02:00
rodzic dce0f5e871
commit ac708fca42
2 zmienionych plików z 7 dodań i 4 usunięć

Wyświetl plik

@ -3524,6 +3524,7 @@ Fixes:
------ ------
* Objects: fixed an inheritance glitch for clones * Objects: fixed an inheritance glitch for clones
* Objects: fixed variable inheritance for traditional Scratch-like clones * Objects: fixed variable inheritance for traditional Scratch-like clones
* Objects: tweaked inheritance indication for stage watchers

Wyświetl plik

@ -8928,10 +8928,12 @@ WatcherMorph.prototype.update = function () {
if (newValue !== this.currentValue) { if (newValue !== this.currentValue) {
this.changed(); this.changed();
this.cellMorph.contents = newValue; this.cellMorph.contents = newValue;
if (isGhosted) { if (isSnapObject(this.target)) {
this.cellMorph.setColor(this.readoutColor.lighter(35)); if (isGhosted) {
} else { this.cellMorph.setColor(this.readoutColor.lighter(35));
this.cellMorph.setColor(this.readoutColor); } else {
this.cellMorph.setColor(this.readoutColor);
}
} }
this.cellMorph.drawNew(); this.cellMorph.drawNew();
if (!isNaN(newValue)) { if (!isNaN(newValue)) {