PokéRogue
    Preparing search index...

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

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    accuracyLabel: Text
    accuracyText: Text
    active: boolean = false
    cursor: number = 0
    cursor2: number = 0
    cursorObj: null | Image
    fieldIndex: number = 0
    fromCommand: Command = Command.FIGHT
    mode: null | number
    moveCategoryIcon: Sprite
    moveInfoContainer: Container
    moveInfoOverlay: MoveInfoOverlay
    movesContainer: Container
    powerLabel: Text
    powerText: Text
    ppLabel: Text
    ppText: Text
    typeIcon: Sprite
    MOVES_CONTAINER_NAME: "moves"

    Methods

    • Returns a specific move's color based on its type effectiveness against opponents If there are multiple opponents, the highest effectiveness' color is returned

      Parameters

      Returns undefined | string

      A color or undefined if the default color should be used

    • Populate the move info overlay with the information of the move at the given cursor index

      Parameters

      • cursor: number

        The cursor position to set the move info for

      Returns void

    • Adjust the visibility of move names and the cursor icon when the info overlay is toggled

      Parameters

      • visible: boolean

        The visibility of the info overlay; the move names and cursor's visibility will be set to the opposite

      Returns void