mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-05 20:49:02 -05:00
Objective images in map planner Closes #1221
This commit is contained in:
parent
a4073e6564
commit
e59b2718c8
|
|
@ -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({
|
|||
})}
|
||||
</div>
|
||||
</details>
|
||||
<details>
|
||||
<summary className="plans__weapons-summary">
|
||||
<Image path={modeImageUrl("RM")} width={24} height={24} alt="" />
|
||||
{t("common:plans.adder.objective")}
|
||||
</summary>
|
||||
<div className="plans__weapons-container">
|
||||
{(["TC", "RM", "CB"] as const).map((mode) => {
|
||||
return (
|
||||
<Button
|
||||
key={mode}
|
||||
variant="minimal"
|
||||
onClick={() => handleAddWeapon(`${modeImageUrl(mode)}.png`)}
|
||||
>
|
||||
<Image
|
||||
alt={t(`game-misc:MODE_LONG_${mode}`)}
|
||||
title={t(`game-misc:MODE_LONG_${mode}`)}
|
||||
path={modeImageUrl(mode)}
|
||||
width={28}
|
||||
height={28}
|
||||
/>
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -153,6 +153,7 @@
|
|||
"plans.blueprint": "Blueprint",
|
||||
"plans.bgStyle.OVER": "Overhead",
|
||||
"plans.bgStyle.MINI": "Minimap",
|
||||
"plans.adder.objective": "Objective",
|
||||
|
||||
"articles.by": "by {{author}}",
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user