Choose this component to create a new toggle button in your user interface.
Drag & drop this component in the graphical user interface or in the hierarchy tree.
General:
Name |
Description |
Width |
width of the component |
Height |
height of the component |
X |
left position of the component |
Y |
top position of the component |
Rotation |
rotation of the component |
Text |
enter the text you want to display |
Size |
size of your text |
Bold |
check this to enable bold text |
Font color |
color of the text. Directly edit the value or use the color picker |
Text offset x |
horizontal offset for the text position |
Text offset y |
verticlal offset for the text position |
Text rotation |
rotation of the text position |
Opacity |
opacity of the component. Affect child components |
Color ON |
background color of the button in ON state. Directly edit the value or use the color picker |
Color OFF |
background color of the button in OFF state. Directly edit the value or use the color picker |
user data |
custom field you can use to read/save user data |
lock position |
if checked prevent accidental move of the component |
Actions:
Event name |
Description |
onSetON |
this event is triggered when the toggle button is set to ON state |
onSetOFF |
this event is triggered when the toggle button is set to OFF state |
2. Feedbacks:
setX |
bind a parameter to set the left position of this component |
setY |
bind a parameter to set the top position of this component |
setWidth |
bind a parameter to set the width of this component |
setHeight |
bind a parameter to set the height of this component |
setColor |
bind a parameter to set the color of this component |
setOpacity |
bind a parameter to set the opacity of this component |
setRotation |
bind a parameter to set the rotation of this component |
setChecked |
bind a parameter to set the ON/OFF state of this component |