LittleJS 1.28.0

UISystem

UICheckbox

UICheckbox - A UI object that acts as a checkbox

Extends UIObject

Constructor

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

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:1611

Is the checkbox currently checked?

text : stringuiSystem.js:1614

The label shown beside the box

Methods

click(playSound)uiSystem.js:1620

Toggle the checkbox, called when it is clicked

playSound boolean optional, default true