Add navigation mode selection to App component
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user