PokéRogue
    Preparing search index...

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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    active: boolean = false
    assetLoadCancelled: null | BooleanHolder
    awaitingActionInput: boolean
    blockInput: boolean = false
    blockOpenPage: boolean = false
    canShowFormTray: boolean
    cursor: number = 0
    cursorObj: Image
    defaultMessageBoxWidth: 220
    defaultWordWrapWidth: 1224
    dialogueMessageBox: NineSlice
    exitCallback?: AnyFn
    filterBar: FilterBar
    filterBarContainer: Container
    filterBarCursor: number = 0
    filteredIndices: SpeciesId[]
    filteredPokemonData: ContainerData[] = []
    filterMode: boolean
    filterText: FilterText
    filterTextContainer: Container
    filterTextCursor: number = 0
    filterTextMode: boolean
    filterTextOptions: FilterTextOptions[]
    formTrayContainer: Container
    gameData: GameData
    goFilterIconElement1: Sprite
    goFilterIconElement2: Sprite
    goFilterLabel: Text
    iconAnimHandler: PokemonIconAnimHelper
    lastSpecies: PokemonSpecies
    manageDataConfig: OptionSelectConfig
    menuBg: NineSlice
    menuMessageBox: NineSlice
    menuMessageBoxContainer: Container
    message: Text
    mode: null | number
    oldCursor: number = -1
    onActionInput: null | Function
    optionSelectText: Text
    pendingPrompt: boolean
    pokemonContainers: PokedexMonContainer[] = []
    pokemonFormText: Text
    pokemonNameText: Text
    pokemonNumberText: Text
    pokemonSprite: Sprite
    pokerusCursorObjs: Image[]
    pokerusSpecies: PokemonSpecies[] = []
    prompt: Sprite
    scale: number = 0.1666666667
    scrollCursor: number
    showDecorations: boolean = false
    showFormTrayIconElement: Sprite
    showFormTrayLabel: Text
    showingTray: boolean = false
    speciesLoaded: Map<SpeciesId, boolean> = ...
    speciesStarterDexEntry: null | DexEntry
    starterPreferences: StarterPreferences
    starterSelectContainer: Container
    starterSelectMessageBox: NineSlice
    starterSelectMessageBoxContainer: Container
    starterSelectScrollBar: ScrollBar
    textCallbackTimer: null | TimerEvent
    textPadding: 8
    textTimer: null | TimerEvent
    toggleDecorationsIconElement: Sprite
    toggleDecorationsLabel: Text
    trayBg: NineSlice
    trayColumns: number
    trayContainers: PokedexMonContainer[] = []
    trayCursor: number = 0
    trayCursorObj: Image
    trayForms: PokemonForm[]
    trayNumIcons: number
    trayRows: number
    tutorialActive: boolean = false
    tutorialOverlay: Rectangle
    type1Icon: Sprite
    type2Icon: Sprite

    Methods

    • Creates a temporary dex attr props that will be used to display the correct shiny, variant, and form based on the StarterPreferences

      Parameters

      • speciesId: number

        the id of the species to get props for

      Returns bigint

      the dex props

    • Parameters

      • speciesId: number

      Returns { currentFriendship: number; friendshipCap: number }

    • Determines if a passive upgrade is available for the given species ID

      Parameters

      • speciesId: number

        The ID of the species to check the passive of

      Returns boolean

      true if the user has enough candies and a passive has not been unlocked already

    • Determines if an same species egg can be bought for the given species ID

      Parameters

      • speciesId: number

        The ID of the species to check the value reduction of

      Returns boolean

      true if the user has enough candies

    • Determines if 'Animation' based upgrade notifications should be shown

      Returns boolean

      true if upgrade notifications are enabled and set to display an 'Animation'

    • Determines if 'Icon' based upgrade notifications should be shown

      Returns boolean

      true if upgrade notifications are enabled and set to display an 'Icon'

    • Determines if a value reduction upgrade is available for the given species ID

      Parameters

      • speciesId: number

        The ID of the species to check the value reduction of

      Returns boolean

      true if the user has enough candies and all value reductions have not been unlocked already

    • Sets a bounce animation if enabled and the Pokemon has an upgrade

      Parameters

      • icon: Sprite

        Phaser.GameObjects.GameObject to animate

      • species: PokemonSpecies

        PokemonSpecies of the icon used to check for upgrades

      • startPaused: boolean = false

        Should this animation be paused after it is added?

      Returns void

    • Parameters

      • text: string
      • Optional_name: string
      • Optionaldelay: null | number
      • Optionalcallback: null | Function
      • OptionalcallbackDelay: null | number
      • Optionalprompt: null | boolean
      • OptionalpromptDelay: null | number

      Returns void

    • Parameters

      • text: string
      • Optionaldelay: number
      • Optionalcallback: Function
      • OptionalcallbackDelay: number
      • Optionalprompt: boolean
      • OptionalpromptDelay: number
      • OptionalmoveToTop: boolean

      Returns void

    • Parameters

      • iconSetting: any
      • gamepadType: any
      • iconElement: any
      • controlLabel: any

      Returns void

    • Parameters

      • iconSetting: any
      • gamepadType: any
      • iconElement: any
      • controlLabel: any

      Returns void