diff --git a/resources/images/SoldierIconAquarius.svg b/resources/images/SoldierIconAquarius.svg deleted file mode 100644 index 81a6b021cc..0000000000 --- a/resources/images/SoldierIconAquarius.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/resources/images/SwordIconAquarius.svg b/resources/images/SwordIconAquarius.svg new file mode 100644 index 0000000000..bb978acbf7 --- /dev/null +++ b/resources/images/SwordIconAquarius.svg @@ -0,0 +1 @@ + diff --git a/src/client/hud/layers/PlayerInfoOverlay.ts b/src/client/hud/layers/PlayerInfoOverlay.ts index 6ea92478a9..b9f074c9e4 100644 --- a/src/client/hud/layers/PlayerInfoOverlay.ts +++ b/src/client/hud/layers/PlayerInfoOverlay.ts @@ -37,7 +37,8 @@ import { ImmunityBarVisibleEvent } from "./ImmunityTimer"; import { CloseRadialMenuEvent } from "./RadialMenu"; import "./RelationSmiley"; import { SpawnBarVisibleEvent } from "./SpawnTimer"; -const soldierIconAquarius = assetUrl("images/SoldierIconAquarius.svg"); +const swordIcon = assetUrl("images/SwordIcon.svg"); +const swordIconAquarius = assetUrl("images/SwordIconAquarius.svg"); const allianceIcon = assetUrl("images/AllianceIcon.svg"); const warshipIcon = assetUrl("images/BattleshipIconWhite.svg"); const cityIcon = assetUrl("images/CityIconWhite.svg"); @@ -212,7 +213,7 @@ export class PlayerInfoOverlay extends LitElement implements Controller { private displayUnitCount(player: PlayerView, type: UnitType, icon: string) { return !this.game.config().isUnitDisabled(type) ? html`
+
-
+
${renderNumber(player.gold())}
- 0 ? soldierIconAquarius : soldierIcon} - alt="" - aria-hidden="true" - />↑ - ${renderTroops(attackingTroops)} + 0 ? swordIconAquarius : swordIcon} + width="13" + height="13" + alt="" + aria-hidden="true" + /> + ${renderTroops(attackingTroops)}
-
+
${this.renderTroopBar(totalTroops, attackingTroops, maxTroops)}
- ${player.cosmetics.flag - ? html`` - : html``} + ${ + player.cosmetics.flag + ? html`` + : html`` + } ${player.displayName()} ${this.getRelationSmiley(player, myPlayer)} - ${playerTeam !== "" && player.type() !== PlayerType.Bot - ? html`
- ${playerType} - [${playerTeam}] -
` - : html`${playerType}`} + ${ + playerTeam !== "" && player.type() !== PlayerType.Bot + ? html`
+ ${playerType} + [${playerTeam}] +
` + : html`(${playerType})` + } ${this.renderPlayerNameIcons(player)} ${allianceHtml ?? ""}
@@ -496,7 +496,7 @@ export class PlayerInfoOverlay extends LitElement implements Controller { @contextmenu=${(e: MouseEvent) => e.preventDefault()} >
${this.player !== null ? this.renderPlayerInfo(this.player) : ""} ${this.unit !== null ? this.renderUnitInfo(this.unit) : ""}