Fixed some texts not updating
This commit is contained in:
parent
312ce0e99a
commit
a5c845d369
|
@ -158,7 +158,7 @@ module TK.SpaceTac.UI {
|
||||||
this.updateShield(this.ship.getValue("shield"));
|
this.updateShield(this.ship.getValue("shield"));
|
||||||
}
|
}
|
||||||
} else if (diff.code == "power") {
|
} else if (diff.code == "power") {
|
||||||
this.power_text.text = `${this.ship.getValue("power")}`;
|
this.power_text.setText(`${this.ship.getValue("power")}`);
|
||||||
if (animate) {
|
if (animate) {
|
||||||
await this.battleview.animations.blink(this.power_text);
|
await this.battleview.animations.blink(this.power_text);
|
||||||
}
|
}
|
||||||
|
@ -378,9 +378,9 @@ module TK.SpaceTac.UI {
|
||||||
updatePlayOrder(): void {
|
updatePlayOrder(): void {
|
||||||
let play_order = this.battleview.battle.getPlayOrder(this.ship);
|
let play_order = this.battleview.battle.getPlayOrder(this.ship);
|
||||||
if (play_order == 0) {
|
if (play_order == 0) {
|
||||||
this.play_order.text = "-";
|
this.play_order.setText("-");
|
||||||
} else {
|
} else {
|
||||||
this.play_order.text = play_order.toString();
|
this.play_order.setText(play_order.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue