mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: smolecraft suggestions 1
This commit is contained in:
1 parent
a099df5133
commit
aaf013c650
3 files changed
+16
-10
No files matched your search
@@ -6,6 +6,7 @@ import {
|
|||||||
IconButton,
|
IconButton,
|
||||||
Link,
|
Link,
|
||||||
Text,
|
Text,
|
||||||
|
Theme,
|
||||||
} from '@radix-ui/themes';
|
} from '@radix-ui/themes';
|
||||||
import { use } from 'react';
|
import { use } from 'react';
|
||||||
import { asset } from '../../../../../../../core/blitzkit/asset';
|
import { asset } from '../../../../../../../core/blitzkit/asset';
|
||||||
@@ -103,7 +104,9 @@ function ModuleButton({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return unlock.type === 'vehicle' ? (
|
return unlock.type === 'vehicle' ? (
|
||||||
<Link href={`/tools/tankopedia/${unlock.id}`}>{button}</Link>
|
<Link href={`/tools/tankopedia/${unlock.id}`}>
|
||||||
|
<Theme scaling="110%">{button}</Theme>
|
||||||
|
</Link>
|
||||||
) : (
|
) : (
|
||||||
button
|
button
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export function Options() {
|
|||||||
color={thisShell.id === antagonistShell.id ? undefined : 'gray'}
|
color={thisShell.id === antagonistShell.id ? undefined : 'gray'}
|
||||||
variant="soft"
|
variant="soft"
|
||||||
key={thisShell.id}
|
key={thisShell.id}
|
||||||
|
size="3"
|
||||||
style={{
|
style={{
|
||||||
borderTopLeftRadius: shellIndex === 0 ? undefined : 0,
|
borderTopLeftRadius: shellIndex === 0 ? undefined : 0,
|
||||||
borderTopRightRadius: shellIndex === 0 ? undefined : 0,
|
borderTopRightRadius: shellIndex === 0 ? undefined : 0,
|
||||||
@@ -114,8 +115,8 @@ export function Options() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt={thisShell.name}
|
alt={thisShell.name}
|
||||||
width={16}
|
width={20}
|
||||||
height={16}
|
height={20}
|
||||||
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
src={asset(`icons/shells/${thisShell.icon}.webp`)}
|
||||||
/>
|
/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
@@ -130,6 +131,7 @@ export function Options() {
|
|||||||
borderBottomRightRadius: 0,
|
borderBottomRightRadius: 0,
|
||||||
borderBottomLeftRadius: 0,
|
borderBottomLeftRadius: 0,
|
||||||
}}
|
}}
|
||||||
|
size="3"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
mutateDuel((draft) => {
|
mutateDuel((draft) => {
|
||||||
draft.antagonist!.equipmentMatrix[0][0] = hasCalibratedShells
|
draft.antagonist!.equipmentMatrix[0][0] = hasCalibratedShells
|
||||||
@@ -140,14 +142,15 @@ export function Options() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="Calibrated Shells"
|
alt="Calibrated Shells"
|
||||||
width={16}
|
width={20}
|
||||||
height={16}
|
height={20}
|
||||||
src={asset('icons/equipment/103.webp')}
|
src={asset('icons/equipment/103.webp')}
|
||||||
/>
|
/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
color={hasEnhancedArmor ? undefined : 'gray'}
|
color={hasEnhancedArmor ? undefined : 'gray'}
|
||||||
variant="soft"
|
variant="soft"
|
||||||
|
size="3"
|
||||||
style={{
|
style={{
|
||||||
borderTopRightRadius: 0,
|
borderTopRightRadius: 0,
|
||||||
borderTopLeftRadius: 0,
|
borderTopLeftRadius: 0,
|
||||||
@@ -163,8 +166,8 @@ export function Options() {
|
|||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="Enhanced Armor"
|
alt="Enhanced Armor"
|
||||||
width={16}
|
width={20}
|
||||||
height={16}
|
height={20}
|
||||||
src={asset('icons/equipment/110.webp')}
|
src={asset('icons/equipment/110.webp')}
|
||||||
/>
|
/>
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { CaretSortIcon } from '@radix-ui/react-icons';
|
import { HeightIcon, WidthIcon } from '@radix-ui/react-icons';
|
||||||
import { Flex, TextField } from '@radix-ui/themes';
|
import { Flex, TextField } from '@radix-ui/themes';
|
||||||
import { use, useEffect, useRef } from 'react';
|
import { use, useEffect, useRef } from 'react';
|
||||||
import { degToRad, radToDeg } from 'three/src/math/MathUtils';
|
import { degToRad, radToDeg } from 'three/src/math/MathUtils';
|
||||||
@@ -87,7 +87,7 @@ export function RotationInputs() {
|
|||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CaretSortIcon style={{ transform: 'rotate(90deg)' }} />
|
<WidthIcon />
|
||||||
</TextField.Slot>
|
</TextField.Slot>
|
||||||
<TextField.Slot style={{ userSelect: 'none' }}>°</TextField.Slot>
|
<TextField.Slot style={{ userSelect: 'none' }}>°</TextField.Slot>
|
||||||
</TextField.Root>
|
</TextField.Root>
|
||||||
@@ -136,7 +136,7 @@ export function RotationInputs() {
|
|||||||
userSelect: 'none',
|
userSelect: 'none',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CaretSortIcon />
|
<HeightIcon />
|
||||||
</TextField.Slot>
|
</TextField.Slot>
|
||||||
<TextField.Slot
|
<TextField.Slot
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user