pokemon-rogue-battle
    Preparing search index...

    Abstract class for handling UI elements related to button bindings.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    actionBg: NineSlice
    actionLabel: Text
    actionsContainer: Container
    active: boolean = false
    buttonPressed: null | number = null
    cancelFn: null | CancelFn
    cancelLabel: Text
    countdownTimer: any
    cursor: number = 0
    listening: boolean = false
    mode: null | number
    newButtonIcon: Sprite
    optionSelectBg: NineSlice
    optionSelectContainer: Container
    swapText: Text
    target: any
    targetButtonIcon: Sprite
    timeLeftAutoClose: number = 5
    timerText: Text
    titleBg: NineSlice
    unlockText: Text

    Methods

    • To be implemented by individual handlers when necessary to free memory Called when BattleScene is reset

      Returns void

    • Handle input down events.

      Parameters

      • buttonIcon: string

        The icon of the button that was pressed.

      • assignedButtonIcon: null | string

        The icon of the button that is assigned.

      • type: string

        The type of button press.

      Returns void