From 5f8f084064be11c309ce197ca07f0960992194a5 Mon Sep 17 00:00:00 2001 From: neoapps-dev Date: Wed, 6 May 2026 15:21:00 +0300 Subject: [PATCH] fix: panorama --- src/components/common/PanoramaBackground.tsx | 6 +++--- src/components/views/VersionsView.tsx | 4 ++-- src/pages/App.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/common/PanoramaBackground.tsx b/src/components/common/PanoramaBackground.tsx index 5587011..c551362 100644 --- a/src/components/common/PanoramaBackground.tsx +++ b/src/components/common/PanoramaBackground.tsx @@ -8,10 +8,10 @@ interface PanoramaProps { const PanoramaBackground = React.memo(({ profile, isDay }: PanoramaProps) => { const { isWindowVisible } = useUI(); - const PANORAMA_PROFILES = ['legacy_evolved', '360revived']; - const profileId = PANORAMA_PROFILES.includes(profile) ? profile : 'legacy_evolved'; + const PANORAMA_PROFILES = ['legacy_evolved', 'vanilla_tu19', '360revived', 'vanilla_tu24']; + const baseId = profile; + const profileId = PANORAMA_PROFILES.includes(baseId) ? baseId : 'vanilla_tu19'; const currentPanorama = `/panorama/${profileId}_Panorama_Background_${isDay ? 'Day' : 'Night'}.png`; - const [bgWidth, setBgWidth] = useState(null); const containerRef = useRef(null); diff --git a/src/components/views/VersionsView.tsx b/src/components/views/VersionsView.tsx index 7fdb73d..a94a1de 100644 --- a/src/components/views/VersionsView.tsx +++ b/src/components/views/VersionsView.tsx @@ -439,8 +439,8 @@ const VersionsView = memo(function VersionsView() { onClick={(e) => { e.stopPropagation(); playPressSound(); - const PANORAMA_PROFILES = ['legacy_evolved', '360revived']; - const panoId = PANORAMA_PROFILES.includes(edition.id) ? edition.id : 'legacy_evolved'; + const PANORAMA_PROFILES = ['legacy_evolved', 'vanilla_tu19', '360revived', 'vanilla_tu24']; + const panoId = PANORAMA_PROFILES.includes(edition.id) ? edition.id : 'vanilla_tu19'; const panoramaUrl = `/panorama/${panoId}_Panorama_Background_${isDayTime ? 'Day' : 'Night'}.png`; addToSteam(edition.instanceId, edition.name, edition.titleImage, panoramaUrl); setOpenMenuId(null); diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 4c5dcc2..31e2971 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -59,7 +59,7 @@ export default function App() { }, [config.isDayTime]); const selectedEdition = game.editions.find( - (e: any) => e.id === config.profile, + (e: any) => e.instanceId === config.profile, ); const selectedVersionName = selectedEdition?.name || ""; const hasAnyInstall = game.installs.length > 0;