AbstractThe specifc type of OptionSelectItem that this handler displays
The specifc type of OptionSelectItem that this handler displays
ProtectedawaitingProtectedblockPrivateconfigProtectedcursorProtectedcursorProtectedfullyPrivatemaxPrivatemaxProtected ReadonlymodeUsed to set the name of optionSelectContainer
ProtectedonPrivateoptionsProtectedoptionProtectedoptionProtectedoptionProtectedoptionPrivaterepeatProtectedscaleProtectedscrollProtectedscrollProtectedtextProtectedtextProtectedcurrentProtectedwindowProtectedclearProtectedclearProtectedclearTo be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
ProtecteddisplayPrivategetCompute the width required to display all given options and readies them for display.
Creates temporary sprite and Text objects and set to be able to infer the required space.
Only considers the options that have not been initialized, and marks them as initialized once done.
Array of UIOptionSelectItems to consider
the maximum width that will be taken by those elements
PrivatehandleProtectedinitInitializes 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
PrivateinitAdd 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 | nullProtectedunblockPrivateupdateProtectedupdateAutomatically 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.