feat: revert lighting

This commit is contained in:
TrèsAbhi committed 2024-07-31 14:26:03 -05:00
1 parent f73426df6a
commit 0dc708ab2a
3 files changed
+6 -6

No files matched your search

@@ -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 (
@@ -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;
});
}}
>
+2 -2
View File
@@ -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,