From e59b2718c8fa84afa363914dade3ad6e52ef99fc Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:30:44 +0200 Subject: [PATCH] Objective images in map planner Closes #1221 --- .../map-planner/components/Planner.tsx | 28 ++++++++++++++++++- locales/en/common.json | 1 + 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/app/features/map-planner/components/Planner.tsx b/app/features/map-planner/components/Planner.tsx index 0546c461f..83cc4f874 100644 --- a/app/features/map-planner/components/Planner.tsx +++ b/app/features/map-planner/components/Planner.tsx @@ -30,6 +30,7 @@ import { import { modesShort } from "~/modules/in-game-lists/modes"; import { mainWeaponImageUrl, + modeImageUrl, outlinedMainWeaponImageUrl, specialWeaponImageUrl, stageMinimapImageUrlWithEnding, @@ -294,7 +295,7 @@ function WeaponImageSelector({ }: { handleAddWeapon: (src: string) => void; }) { - const { t, i18n } = useTranslation(["weapons", "common"]); + const { t, i18n } = useTranslation(["weapons", "common", "game-misc"]); const isWide = i18n.language === "fr"; @@ -403,6 +404,31 @@ function WeaponImageSelector({ })} +
+ + + {t("common:plans.adder.objective")} + +
+ {(["TC", "RM", "CB"] as const).map((mode) => { + return ( + + ); + })} +
+
); } diff --git a/locales/en/common.json b/locales/en/common.json index 77ec6cd71..95c7d4be8 100644 --- a/locales/en/common.json +++ b/locales/en/common.json @@ -153,6 +153,7 @@ "plans.blueprint": "Blueprint", "plans.bgStyle.OVER": "Overhead", "plans.bgStyle.MINI": "Minimap", + "plans.adder.objective": "Objective", "articles.by": "by {{author}}",