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
    awaitingActionInput: boolean
    blockInput: boolean
    cursor: number = 0
    fieldIndex: number
    iconAnimHandler: PokemonIconAnimHelper
    lastCursor: number = 0
    lastLeftPokemonCursor: number = 0
    lastRightPokemonCursor: number = 0
    localizedOptions: PartyOption[] = ...
    message: Text
    mode: number | null
    moveInfoOverlay: MoveInfoOverlay
    moveSelectFilter: PokemonMoveSelectFilter
    onActionInput: AnyFn | null
    options: number[]
    optionsBg: NineSlice
    optionsContainer: Container

    This is only public for test/ui/transfer-item.test.ts

    optionsCursor: number = 0
    optionsCursorObj: Image | null
    optionsMode: boolean
    optionsScroll: boolean
    optionsScrollCursor: number = 0
    optionsScrollTotal: number = 0
    partyBg: Image
    partyCancelButton: PartyCancelButton
    partyContainer: Container
    partyDiscardModeButton: PartyDiscardModeButton
    partyMessageBox: NineSlice
    partySlots: PartySlot[]
    partySlotsContainer: Container
    partyUiMode: PartyUiMode
    pendingPrompt: boolean
    prompt: Sprite
    showMovePp: boolean
    textCallbackTimer: TimerEvent | null
    textTimer: TimerEvent | null
    tmMoveId: MoveId
    transferAll: boolean

    Whether to transfer all items

    transferCursor: number
    transferMode: boolean
    transferOptionCursor: number
    transferQuantities: number[]

    Current quantity selection for every item held by the pokemon selected for the transfer

    transferQuantitiesMax: number[]

    Stack size of every item that the selected pokemon is holding

    tutorialActive: boolean = false
    tutorialOverlay: Rectangle
    NoEffectMessage: string = ...

    Methods

    • Return whether this UI handler is responsible for managing items. Used to ensure proper placement of mode toggle buttons in the UI, etc.

      Returns boolean

      Whether the current handler is responsible for managing items.

    • 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 | null
      • Optionalcallback: (() => void) | null
      • OptionalcallbackDelay: number | null
      • Optionalprompt: boolean | null
      • OptionalpromptDelay: number | null

      Returns void