LittleJS 1.27.0

UISystem

UICheckbox

UICheckbox - A UI object that acts as a checkbox

Extends UIObject

Constructor

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

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

Is the checkbox currently checked?

Methods

click(playSound)uiSystem.js:1616

Toggle the checkbox, called when it is clicked

playSound boolean optional, default true