ProtectedawaitingProtectedblockProtectedcursorProtectedcursorProtectedfullyProtected ReadonlymodeUsed to set the name of optionSelectContainer
ProtectedonProtectedoptionProtectedoptionProtectedoptionProtectedoptionProtectedscaleProtectedscrollProtectedscrollProtectedtextProtectedtextProtectedcurrentProtectedwindowProtectedclearProtectedclearProtectedclearTo be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
ProtecteddisplayProtectedinitInitializes the cursor when opening the menu. MUST only be called after this.initOptions()!
ProtectedinitializeReadies the given UIOptionSelectItem for display.
The UIOptionSelectItem to consider
The width of a single space, used to offset the label if there is a icon to show
A Sprite object that can be used to measure the needed space of the item's icon, if any
Add the sprite to be displayed at the end of messages with prompts
the container to add the sprite to
Create a semi transparent overlay that will get shown during tutorials
the container to add the overlay to
ProtectedsetChanges the style of the mouse cursor.
cursor style to apply
ProtectedsetOptional_name: stringOptionaldelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullOptionalprompt: boolean | nullOptionalpromptDelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullOptionaldelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullOptionalprompt: boolean | nullOptionalpromptDelay: number | nullProtectedunblockProtectedupdateAutomatically set the menu's size for the given options.
Array of UIOptionSelectItems to consider
Generic handler for a menu with several options to choose from with a cursor.
Given the proper
OptionSelectModeConfigthe handler will:At initialization the size of the first
NUM_PRE_COMPUTED_OPTIONSis measured.Then the window's size is updated as needed when a non initialized option needs to be displayed.