Add sub and special weapons to Map Planner

Closes #469
This commit is contained in:
Kalle (Sendou) 2021-05-05 20:34:13 +03:00
parent dd432e0f1c
commit dc19f7e5e1
29 changed files with 60 additions and 0 deletions

View File

@ -7,6 +7,40 @@ interface ImageAdderProps {
addImageToSketch: (imgSrc: string) => void;
}
const SUB_WEAPON_CODES = [
"Bomb_Curling",
"Bomb_Piyo",
"Bomb_Quick",
"Bomb_Robo",
"Bomb_Splash",
"Bomb_Suction",
"Bomb_Tako",
"Flag",
"PointSensor",
"PoisonFog",
"Shield",
"Sprinkler",
"TimerTrap",
];
const SPECIAL_WEAPON_CODES = [
"AquaBall",
"Jetpack",
"LauncherCurling",
"LauncherQuick",
"LauncherRobo",
"LauncherSplash",
"LauncherSuction",
"RainCloud",
"SuperArmor",
"SuperBall",
"SuperBubble",
"SuperLanding",
"SuperMissile",
"SuperStamp",
"WaterCutter",
];
const ImageAdder = ({ addImageToSketch }: ImageAdderProps) => {
return (
<Flex flexWrap="wrap" w="72rem" mt={4} mx="3" justify="center">
@ -34,6 +68,32 @@ const ImageAdder = ({ addImageToSketch }: ImageAdderProps) => {
</Box>
);
})}
{SUB_WEAPON_CODES.map((code) => {
const imgSrc = `/subs-specials/Wsb_${code}.png`;
return (
<Box key={code} m="3px">
<Image
onClick={() => addImageToSketch(imgSrc)}
src={imgSrc}
width={32}
height={32}
/>
</Box>
);
})}
{SPECIAL_WEAPON_CODES.map((code) => {
const imgSrc = `/subs-specials/Wsp_${code}.png`;
return (
<Box key={code} m="3px">
<Image
onClick={() => addImageToSketch(imgSrc)}
src={imgSrc}
width={32}
height={32}
/>
</Box>
);
})}
{["TC", "RM", "CB"].map((mode) => {
const imgSrc = `/modes/${mode}.png`;
return (

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB