Skip to content

CheckButton

Inherits: Button < BaseButton < Control < CanvasItem < Entity < Object

A button that represents a binary choice.

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 example, it can be used when pressing it shows or hides advanced settings, without asking the user to confirm this action.

See also BaseButton which contains common properties and methods associated with this node.

Type Name Default
HorizontalAlignment alignment 0 (overrides Button)
bool toggle_mode true (overrides BaseButton)

button_checked_color

Color button_checked_color (color) = Color(1, 1, 1, 1)

button_unchecked_color

Color button_unchecked_color (color) = Color(1, 1, 1, 1)

check_v_offset

int check_v_offset (constant) = 0

checked

Texture2D checked (icon)

checked_disabled

Texture2D checked_disabled (icon)

checked_disabled_mirrored

Texture2D checked_disabled_mirrored (icon)

checked_mirrored

Texture2D checked_mirrored (icon)

unchecked

Texture2D unchecked (icon)

unchecked_disabled

Texture2D unchecked_disabled (icon)

unchecked_disabled_mirrored

Texture2D unchecked_disabled_mirrored (icon)

unchecked_mirrored

Texture2D unchecked_mirrored (icon)