PokéRogue
    Preparing search index...

    Handles all the UI for choosing optional challenges.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    active: boolean = false
    arrowSpacing: number = 3
    challengeLabels: {
        label: Text;
        leftArrow: Image;
        rightArrow: Image;
        value: Text;
    }[]
    challengesContainer: Container
    cursor: number = 0
    cursorObj: null | NineSlice
    descriptionText: BBCodeText
    hasSelectedChallenge: boolean
    leftArrowGap: number = 90
    mode: null | number
    monoTypeValue: Sprite
    optionsBg: NineSlice
    optionsWidth: number
    scrollCursor: number
    startBg: NineSlice
    startCursor: NineSlice
    startText: Text
    valuesContainer: Container
    widestTextBox: number

    Methods

    • Processes input from a specified button. This method handles navigation through a UI menu, including movement through menu items and handling special actions like cancellation. Each button press may adjust the cursor position or the menu scroll, and plays a sound effect if the action was successful.

      Parameters

      • button: Button

        The button pressed by the user.

      Returns boolean

      true if the action associated with the button was successfully processed, false otherwise.