LittleJS 1.31.0

UISystem

UICheckbox

UICheckbox - A UI object that acts as a checkbox

Extends UIObject

Constructor

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

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

Is the checkbox currently checked?

text : stringuiSystem.js:1707

The label shown beside the box

Methods

click(playSound)uiSystem.js:1713

Toggle the checkbox, called when it is clicked

playSound boolean optional, default true