PrivateallowProtectedawaitingProtectedblockPrivate ReadonlycanProtectedcursorPrivatefilterPrivatefilterPrivatefilteredPrivatefilterPrivatehasUsed to check whether any moves were swapped using the reorder menu, to decide whether a save should be performed or not.
PrivateiconPrivateinstructionsPrivatelastPrivatemovePrivateoldProtectedonPrivateoriginalPrivatepartyPrivatepartyPrivatepartyPrivatepartyPrivate ReadonlypartyPrivatepokerusPrivatepokerusPrivaterandomPrivatescrollPrivateshowPrivatestartPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterPrivatestarterProtectedtextProtectedtextPrivatevaluePrivateaddProtectedcheckClears this UI's starter preferences.
Designed to be used for unit tests that utilize this UI.
To be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
PrivatefilterPrivategetAdd the sprite to be displayed at the end of messages with prompts
the container to add the sprite to
ProtectedinitReturn the sanitized starter preferences for the given PokemonSpecies.
If somehow a preference is set for a form, variant, gender, ability or nature that wasn't actually unlocked or is invalid it will be cleared here.
Any options that are not allowed in the current challenge are also removed, unless the caller specifies otherwise.
The species to get starter preferences for
The AllStarterPreferences object to extract the preferences from
(Default false) Whether the current challenge should be ignored while sanitizing
The StarterPreferences for the species
Create a semi transparent overlay that will get shown during tutorials
the container to add the overlay to
PrivateisChecks whether a given starter is already in the party.
The starter to check
A tuple with a boolean indicating whether the starter is a duplicate and the index of the starter if it is a duplicate
PrivateisCheck that each pokemon in the party is valid for the current challenge.
PrivateleavePrivatemovePrivateonUpdate the candy upgrade notification style based on the settings
PrivateopenOpens the menu and populates its options.
PrivatepopRemoves a starter from the party.
the index of the starter to remove in the party.
PrivatepopulateFunction called when a new starter is selected, used to populate its moveset.
the id of the current selected starter.
the form index of the current starter.
PrivateprocessProcesses inputs from the arrow keys while the cursor is on one of the containers in the box.
PrivateprocessPrivateprocessPrivateprocessProcesses inputs while the cursor is on one of the party icons.
PrivateprocessProcesses inputs while the cursor is on the random choice button.
PrivateprocessProcesses inputs while the cursor is on the start button.
Set default value for the caught dropdown, which only shows caught mons
Set the selections for all filters to their default starting value
PrivateresetProtectedsetProtectedsetChanges the style of the mouse cursor.
cursor style to apply
PrivatesetUpdate the preferences for the ability index for a given species ID.
PrivatesetUpdate the preferences for the form index for a given species ID.
PrivatesetUpdate the preferences for the gender for a given species ID.
PrivatesetUpdate the preferences for the nature for a given species ID.
PrivatesetUpdate the preferences for the tera type for a given species ID.
PrivatesetRemove the current starter, resetting all cursors and stopping the icon animation.
PrivatesetPrivatesetUpdate the preferences for shiny and variant for a given species ID.
PrivatesetChanges the current starter.
This:
If setting no starter, call setNoStarter instead.
the id of the new starter
PrivatesetUpdates all information for the current starter. This should be called every time that preferences are updated.
Among other things, it updates the moveset and party information to match the current preferences.
the id of the new starter
whether the new details should be saved to local storage.
PrivatesetupProtectedsetSets a bounce animation if enabled and the Pokemon has an upgrade
ProtectedsetSets the visibility of the candy upgrade icon for a given Pokémon
The container to update
PrivatesetupOptional_name: stringOptionaldelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullOptionalprompt: boolean | nullOptionalpromptDelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullPrivateshowOptionaldelay: numberOptionalcallback: () => voidOptionalcallbackDelay: numberOptionalprompt: booleanOptionalpromptDelay: numberOptionalmoveToTop: booleanProtectedstartStarts the icon animation of the container at the given cursor.
the index of the container, ranging from 1 to 81.
ProtectedstopStops the icon animation of the container at the given cursor.
the index of the container, ranging from 1 to 81.
PrivateswitchPuts a move at the requested index in the current highlighted Pokemon's moveset.
If the move was already present in the moveset, swap its position with the one at the requested index.
⚠️ this.starterMoveset must not be null when this method is called
PrivatetoggleProtectedtryAttempt to back out of the starter selection screen into the appropriate parent modal
PrivatetryPrivatetryOptionaladdingToParty: booleanPrivateupdateUpdate canCycle, which determines whether buttons to cycle abilty, nature etc. should be visibile.
the id of the current selected starter.
the form index of the current starter.
PrivateupdateUpdate the display of candy upgrade icons or animations for a given Pokémon
The container to update
ProtectedupdatePrivateupdateProtectedupdatePrivateupdateUpdate the starter moveset for the given species if it is part of the selected starters.
The species ID to update the moveset for
ProtectedupdateProtectedupdate
A basic abstract class to act as a holder and processor for UI elements.