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

    achvsName: string
    achvsTotal: number
    active: boolean = false
    awaitingActionInput: boolean
    COLS: 18
    currentPage: Page
    currentTotal: number
    cursor: number = 0
    cursorObj: null | NineSlice
    headerActionButton: Sprite
    headerActionText: Text
    headerBg: NineSlice
    headerBgX: number
    headerText: Text
    icons: Sprite[]
    iconsBg: NineSlice
    iconsContainer: Container
    mainContainer: Container
    message: Text
    mode: null | number
    onActionInput: null | Function
    pendingPrompt: boolean
    prompt: Sprite
    ROWS: 4
    scoreContainer: Container
    scoreText: Text
    scrollBar: ScrollBar
    scrollCursor: number
    textCallbackTimer: null | TimerEvent
    textTimer: null | TimerEvent
    titleBg: NineSlice
    titleText: Text
    tutorialActive: boolean = false
    tutorialOverlay: Rectangle
    unlockText: Text
    vouchersName: string
    vouchersTotal: number

    Methods

    • setScrollCursor(scrollCursor: number) : boolean scrollCursor refers to the page's position within the entire sum of the data, unlike cursor, which refers to a user's position within displayed data

      Parameters

      • scrollCursor: number

        takes a value that has been updated based on user behavior

      Returns boolean

      returns a boolean that indicates whether the updated scrollCursor led to an update in the data displayed.

    • 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: null | number
      • Optionalcallback: null | Function
      • OptionalcallbackDelay: null | number
      • Optionalprompt: null | boolean
      • OptionalpromptDelay: null | number

      Returns void

    • Updates the icons displayed on the UI based on the current page and scroll cursor.

      Type Parameters

      • T extends boolean

      Parameters

      • items: T extends true ? Achv[] : Voucher[]

        The items to display (achievements or vouchers).

      • unlocks: T extends true ? AchvUnlocks : VoucherUnlocks

        The unlocks data for the items.

      • headerText: string

        The text for the header.

      • actionText: string

        The text for the action button.

      • totalItems: number

        The total number of items.

      • forAchievements: T

        True when updating icons for the achievements page, false for the vouchers page.

      Returns void