PokéRogue
    Preparing search index...

    A basic abstract class to act as a holder and processor for UI elements.

    Hierarchy (View Summary)

    Index
    ability1 ability2 abilityHidden active activeTooltip allSpecies assetLoadCancelled availableVariants awaitingActionInput baseStats baseStatsOverlay baseTotal battleForms biomes blockInput blockInputOverlay canCycleForm canCycleGender canCycleShiny candyUpgradeIconElement candyUpgradeLabel canUseCandies cursor cursorObj eggMoves evolutions exitCallback filteredIndices filterInstructionsContainer formIconElement formIndex formLabel genderIconElement genderLabel hasAbilities hasEggMoves hasPassive infoOverlay instructionRowTextOffset instructionRowX instructionRowY instructionsContainer isFormGender isRibbonTrayOpen ivIconElement ivLabel levelMoves menuBg menuContainer menuDescriptions menuOptions message moveInfoOverlay onActionInput optionSelectText passive pendingPrompt pokemonCandyContainer pokemonCandyCountText pokemonCandyDarknessOverlay pokemonCandyIcon pokemonCandyOverlayIcon pokemonCategoryText pokemonCaughtCountText pokemonCaughtHatchedContainer pokemonFormText pokemonGenderText pokemonGrowthRateLabelText pokemonGrowthRateText pokemonHatchedCountText pokemonHatchedIcon pokemonLuckLabelText pokemonLuckText pokemonNameText pokemonNumberText pokemonShinyIcons pokemonSprite pokemonUncaughtText preEvolutions previousSpecies previousStarterPreferences prompt ribbonContainer savedStarterPreferences scale shinyIconElement shinyLabel shinyOverlay showBackSprite showBackSpriteIconElement showBackSpriteLabel species speciesLoaded speciesStarterDexEntry starterDexNoLabel starterId starterPreferences starterSelectContainer starterSelectMessageBox starterSelectMessageBoxContainer statsContainer statsMode textCallbackTimer textTimer tmMoves tutorialActive tutorialOverlay type1Icon type2Icon unlockedVariants
    ability1: AbilityId
    ability2: AbilityId | undefined
    abilityHidden: AbilityId | undefined
    active: boolean = false
    activeTooltip: "ABILITY" | "PASSIVE" | "CANDY" | undefined
    allSpecies: PokemonSpecies[] = []
    assetLoadCancelled: ValueHolder<boolean, Primitive> | null
    availableVariants: number
    awaitingActionInput: boolean
    baseStats: number[]
    baseStatsOverlay: BaseStatsOverlay
    baseTotal: number
    battleForms: SpeciesFormChange[] = []
    biomes: readonly BiomeTierTimeOfDay[] = []
    blockInput: boolean = false
    blockInputOverlay: boolean = false
    canCycleForm: boolean
    canCycleGender: boolean
    canCycleShiny: boolean
    candyUpgradeIconElement: Sprite
    candyUpgradeLabel: Text
    canUseCandies: boolean
    cursor: number = 0
    cursorObj: Image
    eggMoves: MoveId[] = []
    evolutions: SpeciesFormEvolution[] = []
    exitCallback: (() => void) | null = null
    filteredIndices: SpeciesId[] | null = null
    filterInstructionsContainer: Container
    formIconElement: Sprite
    formIndex: number
    formLabel: Text
    genderIconElement: Sprite
    genderLabel: Text
    hasAbilities: [ability1: number, ability2: number, hiddenAbility: number]
    hasEggMoves: boolean[] = []
    hasPassive: boolean
    infoOverlay: PokedexInfoOverlay
    instructionRowTextOffset: 9
    instructionRowX: number = 0
    instructionRowY: number = 0
    instructionsContainer: Container
    isFormGender: boolean
    isRibbonTrayOpen: boolean = false
    ivIconElement: Sprite
    ivLabel: Text
    menuBg: NineSlice
    menuContainer: Container
    menuDescriptions: string[]
    menuOptions: MenuOptions[]
    message: Text
    moveInfoOverlay: MoveInfoOverlay
    onActionInput: AnyFn<any> | null
    optionSelectText: BBCodeText
    passive: AbilityId
    pendingPrompt: boolean = false
    pokemonCandyContainer: Container
    pokemonCandyCountText: Text
    pokemonCandyDarknessOverlay: Sprite
    pokemonCandyIcon: Sprite
    pokemonCandyOverlayIcon: Sprite
    pokemonCategoryText: Text
    pokemonCaughtCountText: Text
    pokemonCaughtHatchedContainer: Container
    pokemonFormText: Text
    pokemonGenderText: Text
    pokemonGrowthRateLabelText: Text
    pokemonGrowthRateText: Text
    pokemonHatchedCountText: Text
    pokemonHatchedIcon: Sprite
    pokemonLuckLabelText: Text
    pokemonLuckText: Text
    pokemonNameText: Text
    pokemonNumberText: Text
    pokemonShinyIcons: Sprite[]
    pokemonSprite: Sprite
    pokemonUncaughtText: Text
    preEvolutions: SpeciesFormEvolution[] = []
    previousSpecies: PokemonSpecies[]
    previousStarterPreferences: StarterPreferences[]
    prompt: Sprite
    ribbonContainer: RibbonTray
    savedStarterPreferences: StarterPreferences
    scale: number = 0.1666666667
    shinyIconElement: Sprite
    shinyLabel: Text
    shinyOverlay: Image
    showBackSprite: boolean = false
    showBackSpriteIconElement: Sprite
    showBackSpriteLabel: Text
    speciesLoaded: Map<SpeciesId, boolean> = ...
    speciesStarterDexEntry: DexEntry | null
    starterDexNoLabel: Image
    starterId: SpeciesId
    starterPreferences: StarterPreferences
    starterSelectContainer: Container
    starterSelectMessageBox: NineSlice
    starterSelectMessageBoxContainer: Container
    statsContainer: StatsContainer
    statsMode: boolean
    textCallbackTimer: TimerEvent | null
    textTimer: TimerEvent | null
    tmMoves: MoveId[] = []
    tutorialActive: boolean = false
    tutorialOverlay: Rectangle
    type1Icon: Sprite
    type2Icon: Sprite
    unlockedVariants: boolean[]
    • Creates a temporary dex attr props that will be used to display the correct shiny, variant, and form based on this.starterPreferences

      Parameters

      • speciesId: SpeciesId

        The id of the species to get props for

      Returns bigint

      the dex props

    • Check whether a given form is caught for a given species. All forms that can be reached through a form change during battle are considered caught and show up in the dex as such.

      Parameters

      • OptionalotherSpecies: PokemonSpecies

        The species to check; defaults to current species

      • OptionalotherFormIndex: number

        The form index of the form to check; defaults to current form

      Returns boolean

      true if the form is caught

    • Parameters

      • text: string
      • Optional_name: string
      • Optionaldelay: number | null
      • Optionalcallback: (() => void) | null
      • OptionalcallbackDelay: number | null
      • Optionalprompt: boolean | null
      • OptionalpromptDelay: number | null

      Returns void

    • Parameters

      • text: string
      • Optionaldelay: number
      • Optionalcallback: () => void
      • OptionalcallbackDelay: number
      • Optionalprompt: boolean
      • OptionalpromptDelay: number
      • OptionalmoveToTop: boolean

      Returns void