Options
All
  • Public
  • Public/Protected
  • All
Menu

A UI button.

Hierarchy

Index

Properties

onClicked

onClicked: MulticastDelegate<(button: this, player: Player) => void>

Called when the button is clicked.

param

The button that was clicked

param

The player who clicked the button

Methods

getOwningObject

getParent

  • Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.

    Returns Widget

getText

  • getText(): string
  • Return the currently displayed text

    Returns string

setText

  • setText(text: string): Button