LittleJS 1.28.0

UISystem

UIButton

UIButton - A UI object that acts as a button

Extends UIObject

Constructor

new UIButton(pos, size, text, color)uiSystem.js:1553

Create a UIButton object

pos Vector2 optional
size Vector2 optional
text string optional
color Color optional, default uiSystem.defaultButtonColor

Members

Inherited from UIObject

Members

text : stringuiSystem.js:1573

The label shown on the button

Text offset for the button