API Docs for: 1.4.0
Show:

Kiwi.HUD.Widget.Button Class

Extends Kiwi.HUD.TextField
Module: Widget
Parent Module: HUD

A subclass of the TextField that has its own input component so that you can listen for mouse events on this widget.

Constructor

Kiwi.HUD.Widget.Button

(
  • game
  • text
  • x
  • y
)
Kiwi.HUD.Widget.Button

Parameters:

  • game Kiwi.Game

    The game that this belongs to.

  • text String

    The text that you want to display inside the button.

  • x Number

    The x-coordnates of this Widget.

  • y Number

    The y-coordinates of this Widget.

Item Index

Methods

Properties

Methods

objType

() String public

The type of object that this is.

Returns:

String:

"ButtonWidget"

Properties

input

Kiwi.HUD.HUDComponents.WidgetInput public

The WidgetInput component that handles the management of events for this button.