From 0dc708ab2a60f9951a85e8a01572ba89aebffb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:26:03 -0500 Subject: [PATCH] feat: revert lighting --- src/app/tools/tankopedia/[id]/components/Lighting.tsx | 4 ++-- .../tankopedia/[id]/components/Model/components/Options.tsx | 4 ++-- src/stores/tankopediaPersistent/index.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Lighting.tsx b/src/app/tools/tankopedia/[id]/components/Lighting.tsx index ed563c828..894970b48 100644 --- a/src/app/tools/tankopedia/[id]/components/Lighting.tsx +++ b/src/app/tools/tankopedia/[id]/components/Lighting.tsx @@ -4,8 +4,8 @@ import * as Duel from '../../../../../stores/duel'; import * as TankopediaPersistent from '../../../../../stores/tankopediaPersistent'; export const ENVIRONMENTS = [ - 'apartment', 'lobby', + 'apartment', 'warehouse', 'dawn', 'sunset', @@ -18,7 +18,7 @@ export function Lighting() { (state) => state.model.visual.showEnvironment, ); const environment = TankopediaPersistent.use( - (state) => state.model.visual.environmentV2, + (state) => state.model.visual.environment, ); return ( diff --git a/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx b/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx index 3a5a27798..04ced02d9 100644 --- a/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx +++ b/src/app/tools/tankopedia/[id]/components/Model/components/Options.tsx @@ -73,7 +73,7 @@ export function Options({ thicknessRange }: OptionsProps) { const opaque = TankopediaPersistent.use((state) => state.model.visual.opaque); const fullScreenAvailable = useFullscreenAvailability(); const environment = TankopediaPersistent.use( - (state) => state.model.visual.environmentV2, + (state) => state.model.visual.environment, ); const developerMode = App.use((state) => state.developerMode); const antagonistGun = Duel.use((state) => state.antagonist.gun); @@ -610,7 +610,7 @@ export function Options({ thicknessRange }: OptionsProps) { value={environment} onClick={() => { mutateTankopediaPersistent((draft) => { - draft.model.visual.environmentV2 = environment; + draft.model.visual.environment = environment; }); }} > diff --git a/src/stores/tankopediaPersistent/index.ts b/src/stores/tankopediaPersistent/index.ts index 39c2779d3..13c7a1aae 100644 --- a/src/stores/tankopediaPersistent/index.ts +++ b/src/stores/tankopediaPersistent/index.ts @@ -17,7 +17,7 @@ export interface TankopediaPersistent { visual: { wireframe: boolean; opaque: boolean; - environmentV2: (typeof ENVIRONMENTS)[number]; + environment: (typeof ENVIRONMENTS)[number]; showGrid: boolean; greenPenetration: boolean; showEnvironment: boolean; @@ -53,7 +53,7 @@ export const { Provider, use, useMutation, useStore } = createNextSafeStore( showPrimaryArmor: true, wireframe: false, opaque: false, - environmentV2: ENVIRONMENTS[0], + environment: ENVIRONMENTS[0], showGrid: true, greenPenetration: false, showEnvironment: false,