diff --git a/packages/editor/src/components/editor/first-person-controls.tsx b/packages/editor/src/components/editor/first-person-controls.tsx index c86c3d08..e1793c5d 100644 --- a/packages/editor/src/components/editor/first-person-controls.tsx +++ b/packages/editor/src/components/editor/first-person-controls.tsx @@ -1,6 +1,5 @@ 'use client' -import '../../three-types' import { type AnyNode, type AnyNodeId, @@ -45,6 +44,7 @@ import { Vector3, } from 'three' import { acceleratedRaycast, computeBoundsTree, disposeBoundsTree } from 'three-mesh-bvh' +import '../../three-types' import { closeDoorOpenState, DOOR_SWING_OPEN_ANGLE, @@ -1324,7 +1324,7 @@ export const FirstPersonOverlay = ({ onExit }: { onExit: () => void }) => { return ( <> {isLocked && ( -
+
@@ -1332,7 +1332,7 @@ export const FirstPersonOverlay = ({ onExit }: { onExit: () => void }) => {
)} -
+
{!hasPlacedSpawn && ( -
+
Place a Spawn Point from the Build tab to control where walkthrough starts.
@@ -1354,7 +1354,7 @@ export const FirstPersonOverlay = ({ onExit }: { onExit: () => void }) => { )} {isLocked && ( -
+
diff --git a/packages/editor/src/components/editor/index.tsx b/packages/editor/src/components/editor/index.tsx index 64d8d0a4..650bd296 100644 --- a/packages/editor/src/components/editor/index.tsx +++ b/packages/editor/src/components/editor/index.tsx @@ -1158,6 +1158,11 @@ export default function Editor({
)} + {isFirstPersonMode && ( + useEditor.getState().setFirstPersonMode(false)} + /> + )} {viewerBanner} {projectId ? : null} @@ -1171,12 +1176,6 @@ export default function Editor({ /> - {/* First-person overlay — rendered on top of normal layout */} - {isFirstPersonMode && ( -
- useEditor.getState().setFirstPersonMode(false)} /> -
- )} )} @@ -1231,13 +1230,10 @@ export default function Editor({
- - {/* First-person overlay — rendered on top of normal layout */} - {isFirstPersonMode && ( -
+ {isFirstPersonMode && ( useEditor.getState().setFirstPersonMode(false)} /> -
- )} + )} + )}
diff --git a/packages/nodes/src/elevator/renderer.tsx b/packages/nodes/src/elevator/renderer.tsx index a13d94fd..4e219005 100644 --- a/packages/nodes/src/elevator/renderer.tsx +++ b/packages/nodes/src/elevator/renderer.tsx @@ -37,10 +37,11 @@ import { } from 'three' import { useShallow } from 'zustand/react/shallow' -const SHAFT_WALL_COLOR = '#d7dce4' -const SHAFT_SIDE_COLOR = '#4b5563' -const SHAFT_TRIM_COLOR = '#eef2f7' -const CAB_COLOR = '#d7dde5' +const DEFAULT_STRUCTURE_WHITE = '#f2f0ed' +const SHAFT_WALL_COLOR = DEFAULT_STRUCTURE_WHITE +const SHAFT_SIDE_COLOR = DEFAULT_STRUCTURE_WHITE +const SHAFT_TRIM_COLOR = DEFAULT_STRUCTURE_WHITE +const CAB_COLOR = DEFAULT_STRUCTURE_WHITE const GLASS_COLOR = '#f8fafc' const DOOR_COLOR = '#8e98a6' const PANEL_COLOR = '#1f2937'