Check box UI element
Called when the check state changes. Not called when the state is changed through setIsChecked.
Return the game object that this UI element is attached to. Returns undefined if the element isn't attached to a game object.
Return the widget that contains this widget, for example a border that wraps a check box. Returns undefined if this object has no parent.
Return the currently displayed text.
Return whether the check box is currently checked
Set whether the check box is currently checked
The new checked state
Set the displayed text. Can include "\n" to indicate new lines.
The new text