diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx
index 47e408f3f..18f01b69a 100644
--- a/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx
+++ b/packages/website/src/components/Tankopedia/HeroSection/components/Options/index.tsx
@@ -90,10 +90,11 @@ export function Options({ thicknessRange, canvas, skeleton }: OptionsProps) {
const mutateTankopediaPersistent = TankopediaPersistent.useMutation();
const mutateTankopediaEphemeral = TankopediaEphemeral.useMutation();
const { strings, unwrap } = useLocale();
+ const disturbed = TankopediaEphemeral.use((state) => state.disturbed);
return (
<>
-
+ {disturbed && }
{display === TankopediaDisplay.ShootingRange && (
state.protagonist.tank);
+ const disturbed = TankopediaEphemeral.use((state) => state.disturbed);
+ const revealed = TankopediaEphemeral.use((state) => state.revealed);
+ const treeColor =
+ protagonist.type === TankType.COLLECTOR
+ ? 'blue'
+ : protagonist.type === TankType.PREMIUM
+ ? 'amber'
+ : undefined;
+ const name = unwrap(protagonist.name);
+
+ return (
+
+ {name}
+
+ );
+}
diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx
index 93ac896c6..a0400ac9b 100644
--- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx
+++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/components/Control.tsx
@@ -128,8 +128,8 @@ export function Controls({
camera.position
.copy(inspectModeInitialPosition)
- .applyAxisAngle(I_HAT, (Math.PI / 16) * Math.sin(t / 9))
- .applyAxisAngle(J_HAT, (-Math.PI / 4) * Math.sin(t / 7));
+ .applyAxisAngle(I_HAT, (Math.PI / 32) * Math.sin(t / 9))
+ .applyAxisAngle(J_HAT, (-Math.PI / 16) * Math.sin(t / 7));
invalidate();
}
diff --git a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/index.tsx b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/index.tsx
index 7133ca8a0..b6fa880d8 100644
--- a/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/index.tsx
+++ b/packages/website/src/components/Tankopedia/HeroSection/components/TankSandbox/index.tsx
@@ -30,7 +30,6 @@ import { AutoClear } from './components/AutoClear';
import { Controls } from './components/Control';
import { InitialFogReveal } from './components/InitialFogReveal';
import { Lighting } from './components/Lighting';
-import { SceneProps } from './components/SceneProps';
import { TankModel } from './components/TankModel';
import { TransitionSkeleton } from './components/TransitionSkeleton';
@@ -234,7 +233,7 @@ export const TankSandbox = forwardRef(
outline: naked ? '1rem red solid' : undefined,
}}
>
- {!naked && }
+ {/* {!naked && } */}
{(display === TankopediaDisplay.Model ||
(display === TankopediaDisplay.DynamicArmor &&
!hideTankModelUnderArmor)) && }
diff --git a/packages/website/src/components/Tankopedia/HeroSection/index.tsx b/packages/website/src/components/Tankopedia/HeroSection/index.tsx
index e387a04ca..075e5fa14 100644
--- a/packages/website/src/components/Tankopedia/HeroSection/index.tsx
+++ b/packages/website/src/components/Tankopedia/HeroSection/index.tsx
@@ -1,14 +1,11 @@
-import { assertSecret, TankType } from '@blitzkit/core';
-import { CaretLeftIcon, MixIcon, UpdateIcon } from '@radix-ui/react-icons';
-import { Box, Dialog, Flex, Heading, Link, Spinner } from '@radix-ui/themes';
+import { TankType } from '@blitzkit/core';
+import { Box, Flex } from '@radix-ui/themes';
import { times } from 'lodash-es';
import { Suspense, useEffect, useMemo, useRef, useState } from 'react';
import { NAVBAR_HEIGHT } from '../../../constants/navbar';
import { awaitableModelDefinitions } from '../../../core/awaitables/modelDefinitions';
import { awaitableProvisionDefinitions } from '../../../core/awaitables/provisionDefinitions';
import { awaitableTankDefinitions } from '../../../core/awaitables/tankDefinitions';
-import { tankToDuelMember } from '../../../core/blitzkit/tankToDuelMember';
-import { Var } from '../../../core/radix/var';
import { useFullScreen } from '../../../hooks/useFullScreen';
import { useLocale } from '../../../hooks/useLocale';
import { Duel } from '../../../stores/duel';
@@ -16,10 +13,9 @@ import { TankopediaEphemeral } from '../../../stores/tankopediaEphemeral';
import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps';
import type { ThicknessRange } from '../../Armor/components/StaticArmor';
import { classIcons } from '../../ClassIcon';
-import { ScienceIcon } from '../../ScienceIcon';
-import { TankSearch } from '../../TankSearch';
import { Options } from './components/Options';
import { TankSandbox } from './components/TankSandbox';
+import { Title } from './components/TankSandbox/Title';
const [provisionDefinitions, modelDefinitions, tankDefinitions] =
await Promise.all([
@@ -110,6 +106,8 @@ export function HeroSection({ skeleton }: MaybeSkeletonComponentProps) {
top={isFullScreen ? '0' : undefined}
left={isFullScreen ? '0' : undefined}
>
+
+
- {!revealed && (
+ {/* {!revealed && (
- )}
+ )} */}
{/* {skeleton && } */}
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
- {unwrap(protagonist.name)}
-
-
-
-
-
-
-
- {strings.website.tools.tankopedia.meta.back}
-
-
-
-
-
-
- {strings.website.tools.tankopedia.meta.compare}
-
-
-
-
-
- {
- event.preventDefault();
- setShowSwapDialog(true);
- }}
- >
-
-
- {strings.website.tools.tankopedia.meta.swap.button}
-
-
-
-
-
-
- {strings.website.tools.tankopedia.meta.swap.title}
-
-
- {
- const model = modelDefinitions.models[tank.id];
-
- setShowSwapDialog(false);
- mutateTankopediaEphemeral((draft) => {
- draft.model = modelDefinitions.models[tank.id];
- });
- mutateDuel((draft) => {
- draft.protagonist = tankToDuelMember(
- tank,
- model,
- provisionDefinitions,
- );
- });
-
- window.history.replaceState(
- null,
- '',
- `/tools/tankopedia/${tank.id}`,
- );
- }}
- />
-
-
-
- {assertSecret(import.meta.env.PUBLIC_PROMOTE_OPENTEST) ===
- 'true' && (
-
-
-
- {assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH) ===
- 'opentest'
- ? strings.website.tools.tankopedia.meta.vanilla
- : strings.website.tools.tankopedia.meta.opentest}
-
-
- )}
-
-
+
);