Add navigation mode selection to App component

This commit is contained in:
2026-04-11 11:17:47 +02:00
parent e7f32a36f6
commit 337a2c08b8

View File

@@ -9694,6 +9694,32 @@ export function App({ store, initialStatusMessage }: AppProps) {
</label>
</div>
<div className="form-section">
<div className="label">Navigation</div>
<label className="form-field">
<span className="label">Mode</span>
<select
data-testid="player-start-navigation-mode"
className="select-input"
value={playerStartNavigationModeDraft}
onChange={(event) => {
const nextMode = event.currentTarget
.value as PlayerStartNavigationMode;
setPlayerStartNavigationModeDraft(nextMode);
scheduleDraftCommit(() => applyPlayerStartChange());
}}
>
{PLAYER_START_NAVIGATION_MODES.map((mode) => (
<option key={mode} value={mode}>
{mode === "firstPerson"
? "First Person"
: "Third Person"}
</option>
))}
</select>
</label>
</div>
<div className="form-section">
<div className="label">Player Collider</div>
<label className="form-field">