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

TextAlignalign0 (parent override)
booltoggle_modetrue (parent override)

Theme Properties

intcheck_vadjust0
StyleBoxdisabled 
StyleBoxfocus 
Fontfont 
Colorfont_colorColor( 0.88, 0.88, 0.88, 1 )
Colorfont_color_disabledColor( 0.9, 0.9, 0.9, 0.2 )
Colorfont_color_hoverColor( 0.94, 0.94, 0.94, 1 )
Colorfont_color_hover_pressedColor( 1, 1, 1, 1 )
Colorfont_color_pressedColor( 1, 1, 1, 1 )
StyleBoxhover 
StyleBoxhover_pressed 
inthseparation4
StyleBoxnormal 
Textureoff 
Textureoff_disabled 
Textureon 
Textureon_disabled 
StyleBoxpressed