imported>Xekri No edit summary |
m ProbablePrime moved page Checkbox (Component) to Component:Checkbox: Creating component Namespace |
(No difference)
|
Revision as of 06:29, 20 January 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
The Checkbox component is used with a Button component to provide a toggling state whenever the button is pressed.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
State
|
Bool | |
TargetState
|
IField<Bool> | The Bool field to drive with the state of the checkbox |
CheckVisual
|
IField<Bool> | The Bool field controlling visibility of the visual to display when the checkbox is in the checked state |
Behavior
Examples
Typically you'd have a child of the checkbox's slot containing an Image component, and that slot's Active property is driven using the CheckVisual property of the checkbox. In addition, you can have a SpriteProvider driving the Image component.
See also ProbablePrime's tutorial on checkboxes.