CheckButton
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
Checkable button. See also CheckBox.
Description
CheckButton is a toggle button displayed as a check field. It's similar to CheckBox in functionality, but it has a different appearance. To follow established UX patterns, it's recommended to use CheckButton when toggling it has an immediate effect on something. For instance, it should be used if toggling it enables/disables a setting without requiring the user to press a confirmation button.
See also BaseButton which contains common properties and methods associated with this node.
Properties
align |
| |
toggle_mode |
|
Theme Properties
check_vadjust | 0 | |
disabled | ||
focus | ||
font | ||
font_color | Color( 0.88, 0.88, 0.88, 1 ) | |
font_color_disabled | Color( 0.9, 0.9, 0.9, 0.2 ) | |
font_color_hover | Color( 0.94, 0.94, 0.94, 1 ) | |
font_color_hover_pressed | Color( 1, 1, 1, 1 ) | |
font_color_pressed | Color( 1, 1, 1, 1 ) | |
hover | ||
hover_pressed | ||
hseparation | 4 | |
normal | ||
off | ||
off_disabled | ||
on | ||
on_disabled | ||
pressed |
© 2014–2021 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.3/classes/class_checkbutton.html