CheckButton

    Checkable button. See also CheckBox.

    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 which contains common properties and methods associated with this node.

    Color

    Color( 0.88, 0.88, 0.88, 1 )

    Color

    Color( 0.9, 0.9, 0.9, 0.2 )

    Color

    Color( 0.94, 0.94, 0.94, 1 )

    Color

    Color( 0.94, 0.94, 0.94, 1 )

    Color

    Color( 1, 1, 1, 1 )

    Color

    Color( 1, 1, 1, 1 )

    int

    int

    4

    Font

    Texture

    Texture

    Texture

    Texture

    StyleBox

    StyleBox

    StyleBox

    StyleBox

    StyleBox

    StyleBox

    • font_color

    Default

    Color( 0.88, 0.88, 0.88, 1 )

    The text’s font color.


    • Color font_color_disabled

    The CheckButton text’s font color when it’s disabled.


    • font_color_focus

    Default

    Color( 0.94, 0.94, 0.94, 1 )

    The CheckButton text’s font color when it’s focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.


    Default

    Color( 0.94, 0.94, 0.94, 1 )

    The CheckButton text’s font color when it’s hovered.


    • Color font_color_hover_pressed

    The CheckButton text’s font color when it’s hovered and pressed.


    • font_color_pressed

    Default

    Color( 1, 1, 1, 1 )

    The CheckButton text’s font color when it’s pressed.


    • int check_vadjust

    Default

    The vertical offset used when rendering the toggle icons (in pixels).


    • hseparation

    The separation between the toggle icon and the text (in pixels).


    The to use for the CheckButton text.


    The icon to display when the CheckButton is unchecked.


    • off_disabled

    The icon to display when the CheckButton is unchecked and disabled.


    The icon to display when the CheckButton is checked.


    The icon to display when the CheckButton is checked and disabled.


    • disabled

    The StyleBox to display as a background when the CheckButton is disabled.


    • focus

    The StyleBox to display as a background when the CheckButton is focused.


    • hover

    The StyleBox to display as a background when the CheckButton is hovered.


    • hover_pressed

    The StyleBox to display as a background when the CheckButton is hovered and pressed.


    • normal

    The StyleBox to display as a background.


    • pressed