Options
All
  • Public
  • Public/Protected
  • All
Menu

Define flex button properties

Hierarchy

  • IFlexButtonInfo

Index

Properties

Optional borderWidth

borderWidth: number

Width of border (optional). Default is 6.

Optional cornerRadius

cornerRadius: number

radius of button corners (optional). Default is 20. 0 is no corner.

Optional disabledTint

disabledTint: number

Tint color to apply when button is disabled (optional). Default is no tint (0xFFFFFF)).

Optional down

Down state (optional). This defines what the button will look like in its down state.

Optional downTint

downTint: number

Tint color to apply when button is in the down state (optional). Default is no tint (0xFFFFFF)).

Optional enableTintOnDown

enableTintOnDown: boolean

Tint button when it is in the down state (optional). Default is false.

height

height: number

Optional label

label: string

Button label/text (optional)

Optional parent

parent: DisplayObjectContainer

Parent of button (optional). Default is game world.

Optional type

type: "default" | "toggle" | "spring"

Type of button (optional). Default is "default"

up

Up state. This defines what the button will look like in its up state

width

width: number

x

x: number

y

y: number