From 1630c84819ce29ea41034b665b3addcd6c5aa695 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 23:24:01 +0200 Subject: [PATCH] Add menu items for entities and lights in App.tsx --- src/app/App.tsx | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/src/app/App.tsx b/src/app/App.tsx index 79156d7b..99150e81 100644 --- a/src/app/App.tsx +++ b/src/app/App.tsx @@ -3582,6 +3582,65 @@ export function App({ store, initialStatusMessage }: AppProps) { } }; + const addMenuItems: HierarchicalMenuItem[] = [ + { + kind: "group", + label: "Entities", + testId: "add-menu-entities", + children: [ + { + kind: "action", + label: "Player Start", + testId: "add-menu-player-start", + onSelect: () => handlePlaceEntity("playerStart") + }, + { + kind: "action", + label: "Sound Emitter", + testId: "add-menu-sound-emitter", + onSelect: () => handlePlaceEntity("soundEmitter") + }, + { + kind: "action", + label: "Trigger Volume", + testId: "add-menu-trigger-volume", + onSelect: () => handlePlaceEntity("triggerVolume") + }, + { + kind: "action", + label: "Teleport Target", + testId: "add-menu-teleport-target", + onSelect: () => handlePlaceEntity("teleportTarget") + }, + { + kind: "action", + label: "Interactable", + testId: "add-menu-interactable", + onSelect: () => handlePlaceEntity("interactable") + } + ] + }, + { + kind: "group", + label: "Lights", + testId: "add-menu-lights", + children: [ + { + kind: "action", + label: "Point Light", + testId: "add-menu-point-light", + onSelect: () => handlePlaceEntity("pointLight") + }, + { + kind: "action", + label: "Spot Light", + testId: "add-menu-spot-light", + onSelect: () => handlePlaceEntity("spotLight") + } + ] + } + ]; + if (editorState.toolMode === "play" && runtimeScene !== null) { return (