Abstract class for handling UI elements related to button bindings.

Hierarchy (view full)

Constructors

Properties

actionBg: NineSlice
actionLabel: Text
actionsContainer: Container
active: boolean = false
buttonPressed: number = null
cancelFn: ((boolean?) => boolean)

Type declaration

    • (boolean?): boolean
    • Parameters

      • Optional boolean: any

      Returns boolean

cancelLabel: Text
countdownTimer: any
cursor: number = 0
listening: boolean = false
mode: number
newButtonIcon: Sprite
optionSelectBg: NineSlice
optionSelectContainer: Container
scene: default
swapText: Text
target: any
targetButtonIcon: Sprite
timeLeftAutoClose: number = 5
timerText: Text
titleBg: NineSlice
unlockText: Text

Methods

  • Handle input down events.

    Parameters

    • buttonIcon: string

      The icon of the button that was pressed.

    • assignedButtonIcon: string

      The icon of the button that is assigned.

    • type: string

      The type of button press.

    Returns void