mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: antagonist penetration preview
This commit is contained in:
1 parent
abac64f01b
commit
8d2ec5f5b4
1 file changed
+17
-1
@@ -22,6 +22,7 @@ import { useState } from 'react';
|
|||||||
import { ModuleButton } from '../../../../../../../components/ModuleButtons/ModuleButton';
|
import { ModuleButton } from '../../../../../../../components/ModuleButtons/ModuleButton';
|
||||||
import { SmallTankIcon } from '../../../../../../../components/SmallTankIcon';
|
import { SmallTankIcon } from '../../../../../../../components/SmallTankIcon';
|
||||||
import { resolveNearPenetration } from '../../../../../../../core/blitz/resolveNearPenetration';
|
import { resolveNearPenetration } from '../../../../../../../core/blitz/resolveNearPenetration';
|
||||||
|
import { resolvePenetrationCoefficient } from '../../../../../../../core/blitz/resolvePenetrationCoefficient';
|
||||||
import { asset } from '../../../../../../../core/blitzkit/asset';
|
import { asset } from '../../../../../../../core/blitzkit/asset';
|
||||||
import { Pose, poseEvent } from '../../../../../../../core/blitzkit/pose';
|
import { Pose, poseEvent } from '../../../../../../../core/blitzkit/pose';
|
||||||
import {
|
import {
|
||||||
@@ -113,7 +114,23 @@ export function Options() {
|
|||||||
top: '50%',
|
top: '50%',
|
||||||
transform: 'translateY(-50%)',
|
transform: 'translateY(-50%)',
|
||||||
}}
|
}}
|
||||||
|
align="end"
|
||||||
>
|
>
|
||||||
|
<Text
|
||||||
|
color="gray"
|
||||||
|
size={{
|
||||||
|
initial: '1',
|
||||||
|
sm: '2',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{(
|
||||||
|
resolvePenetrationCoefficient(
|
||||||
|
hasCalibratedShells,
|
||||||
|
antagonistShell.type,
|
||||||
|
) * resolveNearPenetration(antagonistShell.penetration)
|
||||||
|
).toFixed(0)}
|
||||||
|
mm
|
||||||
|
</Text>
|
||||||
<Flex direction="column">
|
<Flex direction="column">
|
||||||
{antagonistGun.shells.map((thisShell, shellIndex) => (
|
{antagonistGun.shells.map((thisShell, shellIndex) => (
|
||||||
<IconButton
|
<IconButton
|
||||||
@@ -157,7 +174,6 @@ export function Options() {
|
|||||||
</IconButton>
|
</IconButton>
|
||||||
))}
|
))}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<Flex direction="column" style={{ pointerEvents: 'auto' }}>
|
<Flex direction="column" style={{ pointerEvents: 'auto' }}>
|
||||||
<IconButton
|
<IconButton
|
||||||
color={hasCalibratedShells ? undefined : 'gray'}
|
color={hasCalibratedShells ? undefined : 'gray'}
|
||||||
|
|||||||
Reference in new issue
Block a user