Options
All
  • Public
  • Public/Protected
  • All
Menu

Flexible UI button

Hierarchy

  • FlexButton

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

onPressed

onPressed: Signal = new Phaser.Signal()

Phaser signal that fires when the pressed

Accessors

enabled

  • get enabled(): boolean
  • set enabled(b: boolean): void
  • Set/get if button is enabled (i.e., responds to input)

    Returns boolean

  • Set/get if button is enabled (i.e., responds to input)

    Parameters

    • b: boolean

    Returns void

isDown

  • get isDown(): boolean
  • Returns true if the button is in the down state

    Returns boolean

Methods

getBounds

  • getBounds(): Rectangle
  • Return the bounds of the button

    Returns Rectangle

moveTo

  • moveTo(x: number, y: number): void
  • Move button to a new location

    Parameters

    • x: number
    • y: number

    Returns void

press

  • press(): void
  • Explicitely press button

    Returns void