LittleJS 1.30.1

UISystem

UICheckbox

UICheckbox - A UI object that acts as a checkbox

Extends UIObject

Constructor

new UICheckbox(pos, size, checked, text, color)uiSystem.js:1612

Create a UICheckbox object

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

Members

Methods

Inherited from UIObject

Members

checked : booleanuiSystem.js:1629

Is the checkbox currently checked?

text : stringuiSystem.js:1632

The label shown beside the box

Methods

click(playSound)uiSystem.js:1638

Toggle the checkbox, called when it is clicked

playSound boolean optional, default true