From fbaa31f9d5f24e2b500e45911bae54b8f5f19ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Sat, 28 Feb 2015 01:00:00 +0100 Subject: [PATCH] Moved "AI playing" indicator on top of action bar --- src/scripts/view/battle/ActionBar.ts | 2 ++ src/scripts/view/battle/BattleView.ts | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/scripts/view/battle/ActionBar.ts b/src/scripts/view/battle/ActionBar.ts index 4ad2728..5ea6a7a 100644 --- a/src/scripts/view/battle/ActionBar.ts +++ b/src/scripts/view/battle/ActionBar.ts @@ -85,8 +85,10 @@ module SpaceTac.View { }); this.ship = ship; + this.game.tweens.create(this).to({"alpha": 1}, 400).start(); } else { this.ship = null; + this.game.tweens.create(this).to({"alpha": 0.5}, 400).start(); } this.updateActionPoints(); diff --git a/src/scripts/view/battle/BattleView.ts b/src/scripts/view/battle/BattleView.ts index 122e1bb..b98702b 100644 --- a/src/scripts/view/battle/BattleView.ts +++ b/src/scripts/view/battle/BattleView.ts @@ -90,8 +90,9 @@ module SpaceTac.View { this.card_playing = new ShipCard(this, 1060, 130); this.card_hovered = new ShipCard(this, 1060, 430); - this.icon_waiting = new Phaser.Image(this.game, 640, 360, "battle-waiting", 0); + this.icon_waiting = new Phaser.Image(this.game, 640, 50, "battle-waiting", 0); this.icon_waiting.anchor.set(0.5, 0.5); + this.icon_waiting.scale.set(0.5, 0.5); game.add.existing(this.icon_waiting); game.tweens.create(this.icon_waiting).to({"angle": 360}, 3000).repeat(-1).start();