From c2e550e33d8a7ac20cec77b636823687d41e7b7a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com>
Date: Fri, 2 Feb 2024 16:08:41 -0600
Subject: [PATCH] feat: on click display
---
.../[id]/components/Model/TankSandbox.tsx | 13 +-
.../components/Model/components/TankModel.tsx | 9 ++
.../ArmorMesh/components/Armor/index.tsx | 113 ++++++++++++++++--
src/components/ShotDisplay.tsx | 43 +++++++
src/stores/tankopedia.ts | 22 ++++
5 files changed, 191 insertions(+), 9 deletions(-)
create mode 100644 src/components/ShotDisplay.tsx
diff --git a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx
index 17bbdfae3..2123cfc14 100644
--- a/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx
+++ b/src/app/tools/tankopedia/[id]/components/Model/TankSandbox.tsx
@@ -3,6 +3,7 @@ import { Button, Card, Flex, Tabs, Theme } from '@radix-ui/themes';
import { PerspectiveCamera } from '@react-three/drei';
import { Canvas } from '@react-three/fiber';
import { Suspense, use, useEffect, useRef, useState } from 'react';
+import { ShotDisplay } from '../../../../../../components/ShotDisplay';
import { applyPitchYawLimits } from '../../../../../../core/blitz/applyPitchYawLimits';
import { modelDefinitions } from '../../../../../../core/blitzkrieg/modelDefinitions';
import { modelTransformEvent } from '../../../../../../core/blitzkrieg/modelTransform';
@@ -166,12 +167,22 @@ export function TankSandbox() {
{loadModel ? (
-