From eea783d44a34ab76ee8575dcf0ba74a9117c1501 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 31 Mar 2026 06:48:37 +0200 Subject: [PATCH] Add interaction prompt display and help banner in App component --- src/app/App.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 9f46ce31..d1d8da3a 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -1839,6 +1839,7 @@ export function App({ store, initialStatusMessage }: AppProps) { navigationMode={activeNavigationMode} onRuntimeMessageChange={setRuntimeMessage} onFirstPersonTelemetryChange={setFirstPersonTelemetry} + onInteractionPromptChange={setRuntimeInteractionPrompt} /> @@ -1876,7 +1877,26 @@ export function App({ store, initialStatusMessage }: AppProps) { +
+
Interaction
+
+ {activeNavigationMode === "firstPerson" ? (runtimeInteractionPrompt === null ? "No target" : "Ready") : "Not available"} +
+
+ {activeNavigationMode === "firstPerson" + ? runtimeInteractionPrompt === null + ? "Aim at an authored Interactable and click when a prompt appears." + : `Click "${runtimeInteractionPrompt.prompt}" within ${runtimeInteractionPrompt.range.toFixed(1)}m.` + : "Switch to First Person to use click interactions."} +
+
+ {runtimeMessage === null ? null :
{runtimeMessage}
} + {activeNavigationMode === "firstPerson" ? ( +
+ Mouse click activates the current prompt target. Keyboard/controller fallback is not active yet. +
+ ) : null}