mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: start of custom shell
This commit is contained in:
1 parent
88a682bae8
commit
0e6b79dcbe
1 file changed
+27
-4
+27
-4
@@ -194,9 +194,6 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
key={thisShell.id}
|
key={thisShell.id}
|
||||||
size={{ initial: '2', sm: '3' }}
|
size={{ initial: '2', sm: '3' }}
|
||||||
radius="none"
|
radius="none"
|
||||||
style={{
|
|
||||||
marginTop: shellIndex === 0 ? 0 : -1,
|
|
||||||
}}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
invalidate();
|
invalidate();
|
||||||
mutateDuel((draft) => {
|
mutateDuel((draft) => {
|
||||||
@@ -218,6 +215,33 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
<IconButton
|
||||||
|
// color={
|
||||||
|
// thisShell.id === antagonistShell.id ? undefined : 'gray'
|
||||||
|
// }
|
||||||
|
variant="soft"
|
||||||
|
size={{ initial: '2', sm: '3' }}
|
||||||
|
radius="none"
|
||||||
|
onClick={() => {
|
||||||
|
invalidate();
|
||||||
|
// mutateDuel((draft) => {
|
||||||
|
// draft.antagonist.shell = thisShell;
|
||||||
|
// });
|
||||||
|
mutateTankopediaEphemeral((draft) => {
|
||||||
|
draft.shot = undefined;
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<img
|
||||||
|
alt="custom shell"
|
||||||
|
src={imgur('j2CoXak')}
|
||||||
|
style={{
|
||||||
|
width: '50%',
|
||||||
|
height: '50%',
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</IconButton>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex
|
<Flex
|
||||||
@@ -258,7 +282,6 @@ export function Options({ thicknessRange, canvas }: OptionsProps) {
|
|||||||
color={hasEnhancedArmor ? undefined : 'gray'}
|
color={hasEnhancedArmor ? undefined : 'gray'}
|
||||||
variant="soft"
|
variant="soft"
|
||||||
size={{ initial: '2', sm: '3' }}
|
size={{ initial: '2', sm: '3' }}
|
||||||
style={{ marginTop: -1 }}
|
|
||||||
radius="none"
|
radius="none"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|||||||
Reference in new issue
Block a user