The title of this Prompt.
The message of this Prompt or undefined for no message.
The UIResolver that is provided to link custom instances to the intended structure.
Optional MessageThe message of the Prompt. This is optional and when toggled a TextLabel will be added to content for you with your specified message.
The configurable options of this Prompt. See PromptOptions
The timeout of this Prompt, when a prompt times out it will fullfill as declined.
0 when no timeout will be present, and the prompt will function indefinitely until {@link Prompt.Destroy}.
The title of the Prompt.
Optional ValidatorA property that is meant to store a validate function that will be fired before Prompt.OnFulfill is called; and will only be called if this function returns true.
A property that is meant to store a validate function that will be fired before Prompt.OnFulfill is called; and will only be called if this function returns true.
The PromptPayload data of the Prompt.
boolean - True if the prompt payload is valid, false otherwise.
The PromptPayload data of the Prompt.
boolean - True if the prompt payload is valid, false otherwise.
Private Readonly _UIThis Prompts UIResolver.
Private Readonly _cancelledWhether the Prompt was cancelled or not.
Private Readonly _destroyedWhether the Prompt has been destroyed or not.
Private Optional _timerThe Timer of this Prompt used for time management.
Private Readonly _triggeredWhether the Prompt is already triggered or not.
Private _typeThe type of this Prompt.
Private cleanPrivate startPrivate This starts and handles the prompts internal timing and functionality when Prompt.TimeOut is assigned.
This event is fired when a prompt is cancelled for external reasons.
This event is fired when an input or timeout is received.
Generated using TypeDoc
The main class used to create & use Prompts.
Example