PrivateappProtectedawaitingProtectedblockProtectedcursorProtectedcursorPrivateeventProtectedfullyProtected ReadonlymodeUsed to set the name of optionSelectContainer
ProtectedonProtectedoptionProtectedoptionProtectedoptionProtectedoptionPrivateplayerProtectedscaleProtectedscrollProtectedscrollPrivatesnowPrivatesplashPrivatesplashProtectedtextProtectedtextPrivatetitlePrivatetitlePrivateusernameProtectedcurrentProtectedwindowPrivateaddAdds a snow effect on the title screen during the winter season.
ProtectedclearProtectedclearProtectedclearTo be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
ProtecteddisplayPrivategetGet the logo file path to load, with a 0.1% chance to use the fake logo instead.
The path to the image.
PrivategetPrivategetThe username of the logged in user, or the trainer name (based on currently selected gender) if the "Hide Username" setting is enabled
ProtectedinitInitializes 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
PrivateupdatePrivateupdate
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.