diff --git a/data/stage1/image/options/logo.png b/data/stage1/image/options/logo.png index b894f0f..f859397 100644 Binary files a/data/stage1/image/options/logo.png and b/data/stage1/image/options/logo.png differ diff --git a/data/stage2/image/battle/hud/ship-effect-bad.png b/data/stage2/image/battle/hud/ship-effect-bad.png index d6f62df..acbb9d3 100644 Binary files a/data/stage2/image/battle/hud/ship-effect-bad.png and b/data/stage2/image/battle/hud/ship-effect-bad.png differ diff --git a/data/stage2/image/battle/hud/ship-effect-good.png b/data/stage2/image/battle/hud/ship-effect-good.png index ee46fdf..e259027 100644 Binary files a/data/stage2/image/battle/hud/ship-effect-good.png and b/data/stage2/image/battle/hud/ship-effect-good.png differ diff --git a/data/stage2/image/battle/hud/ship-enemy-playing.png b/data/stage2/image/battle/hud/ship-enemy-playing.png new file mode 100644 index 0000000..288c12e Binary files /dev/null and b/data/stage2/image/battle/hud/ship-enemy-playing.png differ diff --git a/data/stage2/image/battle/hud/ship-enemy.png b/data/stage2/image/battle/hud/ship-enemy.png index 7987014..1b18fd2 100644 Binary files a/data/stage2/image/battle/hud/ship-enemy.png and b/data/stage2/image/battle/hud/ship-enemy.png differ diff --git a/data/stage2/image/battle/hud/ship-hover.png b/data/stage2/image/battle/hud/ship-hover.png index c4d3ada..ac59a09 100644 Binary files a/data/stage2/image/battle/hud/ship-hover.png and b/data/stage2/image/battle/hud/ship-hover.png differ diff --git a/data/stage2/image/battle/hud/ship-own-playing.png b/data/stage2/image/battle/hud/ship-own-playing.png new file mode 100644 index 0000000..8c1d6cb Binary files /dev/null and b/data/stage2/image/battle/hud/ship-own-playing.png differ diff --git a/data/stage2/image/battle/hud/ship-own.png b/data/stage2/image/battle/hud/ship-own.png index 061b7b1..b0deefe 100644 Binary files a/data/stage2/image/battle/hud/ship-own.png and b/data/stage2/image/battle/hud/ship-own.png differ diff --git a/graphics/ui/battle.svg b/graphics/ui/battle.svg index cfd902b..4bea56c 100644 --- a/graphics/ui/battle.svg +++ b/graphics/ui/battle.svg @@ -1611,6 +1611,38 @@ fy="-214.00548" r="109.00001" gradientUnits="userSpaceOnUse" /> + + + + + + + + + image/svg+xml - + @@ -1698,13 +1730,13 @@ + x="930.039" + id="image9266" + preserveAspectRatio="none" + height="84.542961" + width="84.542961" /> + id="image6587" + preserveAspectRatio="none" + height="183.97649" + width="183.97668" /> + id="image5902" + preserveAspectRatio="none" + height="83.066681" + width="83.066681" + style="display:inline;enable-background:new" /> @@ -2939,7 +2971,7 @@ transform="matrix(0.9474435,0,0,0.9474435,-1506.8523,70.351749)" inkscape:export-ydpi="96" inkscape:export-xdpi="96" - inkscape:export-filename="/home/michael/workspace/perso/spacetac/graphics/exported/battle/hud/ship-own.png" + inkscape:export-filename="/home/michael/workspace/spacetac/data/stage2/image/battle/hud/ship-enemy-playing.png" style="display:inline;fill:none;enable-background:new" id="g7821"> + mask="url(#mask8492)" + inkscape:export-filename="/home/michael/workspace/spacetac/data/stage2/image/battle/hud/ship-own.png" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96" /> + mask="url(#mask8497)" + inkscape:export-filename="/home/michael/workspace/spacetac/data/stage2/image/battle/hud/ship-enemy.png" + inkscape:export-xdpi="96" + inkscape:export-ydpi="96" /> @@ -3141,6 +3179,50 @@ transform="translate(1183.0283,-522.25003)" width="100%" height="100%" /> + + + + + + x="816.54016" + id="image5590" + preserveAspectRatio="none" + height="76.394867" + width="76.394867" /> @@ -318,71 +318,6 @@ in2="result3" id="feBlend4626" /> - - - - - - - - - - - - - - - @@ -747,15 +682,6 @@ inkscape:export-xdpi="96" inkscape:export-ydpi="96" /> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + showguides="false" + inkscape:window-width="1920" + inkscape:window-height="1058" + inkscape:window-x="0" + inkscape:window-y="20" + inkscape:window-maximized="0" /> @@ -867,107 +964,138 @@ id="layer9" inkscape:label="Logo"> + id="g1352-6"> + style="display:inline" + id="g1333-1"> - - - - - - - - - - - + + + + + + + + + + + + id="path6393-7" + inkscape:connector-curvature="0" + sodipodi:nodetypes="ccccc" /> + xlink:href="#g6396-5" + id="use6398-6" + width="100%" + height="100%" + transform="matrix(-1,0,0,1,1854.4715,301.84684)" /> + + + SpaceTac + SpaceTac + SpaceTac - SpaceTac { - this.frame_owner.alpha = playing ? 1 : 0.35; - this.frame_owner.visible = this.ship.alive; + this.frame_owner.setVisible(this.ship.alive); + this.frame_playing.setVisible(this.ship.alive && playing); if (playing && animate) { this.battleview.audio.playOnce("battle-ship-change"); - await this.battleview.animations.blink(this.frame_owner); + await this.battleview.animations.blink(this.frame_playing); } } diff --git a/src/ui/battle/ShipTooltip.spec.ts b/src/ui/battle/ShipTooltip.spec.ts index 532cf65..e2979f3 100644 --- a/src/ui/battle/ShipTooltip.spec.ts +++ b/src/ui/battle/ShipTooltip.spec.ts @@ -22,10 +22,12 @@ module TK.SpaceTac.UI.Specs { let texts = collectTexts((tooltip).container); check.contains(images, "ship-fake-portrait"); check.contains(images, "action-weapon"); + check.contains(images, "battle-hud-ship-effect-good"); + check.contains(images, "battle-hud-ship-effect-bad"); check.equals(texts, [ "Level 1 Fury", "Plays in 2 turns", "57", "max", "58", "100", "max", "140", "7", "9", "max", "12", - "Weapon", "• hull capacity +50", "• limit shield capacity to 2 for 3 turns", + "Weapon", "hull capacity +50", "limit shield capacity to 2 for 3 turns", "Super ship model !" ]); }); diff --git a/src/ui/battle/ShipTooltip.ts b/src/ui/battle/ShipTooltip.ts index c20a468..e51b3cb 100644 --- a/src/ui/battle/ShipTooltip.ts +++ b/src/ui/battle/ShipTooltip.ts @@ -39,7 +39,7 @@ module TK.SpaceTac.UI { }); let enemy = player && !player.is(ship.fleet.player); - builder.text(ship.getName(), 230, 0, { color: enemy ? "#cc0d00" : "#ffffff", size: 22, bold: true }); + builder.text(ship.getName(), 230, 0, { color: enemy ? "#c06858" : "#65a898", size: 22, bold: true }); if (ship.alive) { if (battle) { @@ -65,8 +65,9 @@ module TK.SpaceTac.UI { ship.active_effects.list().forEach(effect => { if (!effect.isInternal()) { - builder.text(`• ${effect.getDescription()}`, 0, iy, { color: effect.isBeneficial() ? "#afe9c6" : "#e9afaf" }); - iy += 32; + builder.image(`battle-hud-ship-effect-${effect.isBeneficial() ? "good" : "bad"}`, 10, iy + 12); + builder.text(effect.getDescription(), 46, iy + 8); + iy += 40; } });