1
0
Fork 0

Fixed some texts not updating

This commit is contained in:
Michaël Lemaire 2018-06-06 00:45:23 +02:00
parent 312ce0e99a
commit a5c845d369
1 changed files with 3 additions and 3 deletions

View File

@ -158,7 +158,7 @@ module TK.SpaceTac.UI {
this.updateShield(this.ship.getValue("shield"));
}
} else if (diff.code == "power") {
this.power_text.text = `${this.ship.getValue("power")}`;
this.power_text.setText(`${this.ship.getValue("power")}`);
if (animate) {
await this.battleview.animations.blink(this.power_text);
}
@ -378,9 +378,9 @@ module TK.SpaceTac.UI {
updatePlayOrder(): void {
let play_order = this.battleview.battle.getPlayOrder(this.ship);
if (play_order == 0) {
this.play_order.text = "-";
this.play_order.setText("-");
} else {
this.play_order.text = play_order.toString();
this.play_order.setText(play_order.toString());
}
}