|
|
@ -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 (
|
||||
|
|
|
|||
BIN
public/subs-specials/Wsb_Bomb_Curling.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/subs-specials/Wsb_Bomb_Piyo.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
public/subs-specials/Wsb_Bomb_Quick.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/subs-specials/Wsb_Bomb_Robo.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/subs-specials/Wsb_Bomb_Splash.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/subs-specials/Wsb_Bomb_Suction.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
public/subs-specials/Wsb_Bomb_Tako.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
public/subs-specials/Wsb_Flag.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
public/subs-specials/Wsb_PointSensor.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
public/subs-specials/Wsb_PoisonFog.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/subs-specials/Wsb_Shield.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/subs-specials/Wsb_Sprinkler.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/subs-specials/Wsb_TimerTrap.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
public/subs-specials/Wsp_AquaBall.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
public/subs-specials/Wsp_Jetpack.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
public/subs-specials/Wsp_LauncherCurling.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/subs-specials/Wsp_LauncherQuick.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
public/subs-specials/Wsp_LauncherRobo.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
BIN
public/subs-specials/Wsp_LauncherSplash.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
public/subs-specials/Wsp_LauncherSuction.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/subs-specials/Wsp_RainCloud.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
public/subs-specials/Wsp_SuperArmor.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
public/subs-specials/Wsp_SuperBall.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
public/subs-specials/Wsp_SuperBubble.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
public/subs-specials/Wsp_SuperLanding.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
public/subs-specials/Wsp_SuperMissile.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
public/subs-specials/Wsp_SuperStamp.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
public/subs-specials/Wsp_WaterCutter.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |