Improve interaction prompt phrasing and add player start interaction logic.
This commit is contained in:
@@ -13494,7 +13494,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
||||
>
|
||||
{runtimeInteractionPrompt === null
|
||||
? `Aim at an authored Interactable or NPC. ${runtimeInteractInstruction} when a prompt appears.`
|
||||
: `${runtimeInteractInstruction} "${runtimeInteractionPrompt.prompt}" within ${runtimeInteractionPrompt.range.toFixed(1)}m.`}
|
||||
: `${runtimeInteractInstruction} to activate "${runtimeInteractionPrompt.prompt}" within ${runtimeInteractionPrompt.range.toFixed(1)}m.`}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -138,7 +138,9 @@ import {
|
||||
import {
|
||||
DEFAULT_PLAYER_START_INTERACTION_ANGLE_DEGREES,
|
||||
DEFAULT_PLAYER_START_INTERACTION_REACH_METERS,
|
||||
getNpcColliderHeight
|
||||
getNpcColliderHeight,
|
||||
getPlayerStartMouseBindingCodeForButton,
|
||||
isPlayerStartMouseBindingCode
|
||||
} from "../entities/entity-instances";
|
||||
import type { InteractionLink } from "../interactions/interaction-links";
|
||||
import type {
|
||||
@@ -214,6 +216,7 @@ import {
|
||||
} from "./runtime-scene-build";
|
||||
import {
|
||||
resolveDefaultTargetCycleInput,
|
||||
resolvePlayerStartInteractInput,
|
||||
resolvePlayerStartLookInput,
|
||||
resolvePlayerStartPauseInput
|
||||
} from "./player-input-bindings";
|
||||
|
||||
Reference in New Issue
Block a user