From f188af602929a23f30279386b68cf4f9c20eeac4 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Tue, 25 Mar 2025 07:47:07 +0900 Subject: [PATCH] Added SAM icon due to missing asset (#318) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There was a report on Discord about the SAM icon not displaying correctly. https://discord.com/channels/1284581928254701718/1353348395506466937/1353348395506466937 After checking the CSS, I found that it was referencing a non-existent path. Since there was no dedicated image for the SAM, I created a custom one to replace it. Let me know if any adjustments are needed! Thank you! スクリーンショット 2025-03-23 22 53 38 スクリーンショット 2025-03-23 22 42 33 --- resources/images/SamLauncherIconWhite.svg | 32 +++++++++++++++++++++++ src/client/graphics/layers/BuildMenu.ts | 3 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 resources/images/SamLauncherIconWhite.svg diff --git a/resources/images/SamLauncherIconWhite.svg b/resources/images/SamLauncherIconWhite.svg new file mode 100644 index 000000000..242c55ccb --- /dev/null +++ b/resources/images/SamLauncherIconWhite.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/client/graphics/layers/BuildMenu.ts b/src/client/graphics/layers/BuildMenu.ts index 10c5388ed..f07492627 100644 --- a/src/client/graphics/layers/BuildMenu.ts +++ b/src/client/graphics/layers/BuildMenu.ts @@ -17,6 +17,7 @@ import goldCoinIcon from "../../../../resources/images/GoldCoinIcon.svg"; import portIcon from "../../../../resources/images/PortIcon.svg"; import mirvIcon from "../../../../resources/images/MIRVIcon.svg"; import cityIcon from "../../../../resources/images/CityIconWhite.svg"; +import samlauncherIcon from "../../../../resources/images/SamLauncherIconWhite.svg"; import shieldIcon from "../../../../resources/images/ShieldIconWhite.svg"; import { renderNumber } from "../../Utils"; import { GameView, PlayerView } from "../../../core/game/GameView"; @@ -71,7 +72,7 @@ const buildTable: BuildItemDisplay[][] = [ // needs new icon { unitType: UnitType.SAMLauncher, - icon: shieldIcon, + icon: samlauncherIcon, description: "Defends against incoming nukes", countable: true, },