Button

Inherits: BaseButton < Control < CanvasItem < Node < Object

Inherited By: CheckBox, CheckButton, ColorPickerButton, MenuButton, OptionButton

There is currently no description for this class. Please help us by contributing one!

Properties

HorizontalAlignment

alignment

1

AutowrapMode

autowrap_mode

0

bool

clip_text

false

bool

expand_icon

false

bool

flat

false

Texture2D

icon

HorizontalAlignment

icon_alignment

0

String

language

""

String

text

""

TextDirection

text_direction

0

OverrunBehavior

text_overrun_behavior

0

VerticalAlignment

vertical_icon_alignment

1

Theme Properties

Color

font_color

Color(0.875, 0.875, 0.875, 1)

Color

font_disabled_color

Color(0.875, 0.875, 0.875, 0.5)

Color

font_focus_color

Color(0.95, 0.95, 0.95, 1)

Color

font_hover_color

Color(0.95, 0.95, 0.95, 1)

Color

font_hover_pressed_color

Color(1, 1, 1, 1)

Color

font_outline_color

Color(0, 0, 0, 1)

Color

font_pressed_color

Color(1, 1, 1, 1)

Color

icon_disabled_color

Color(1, 1, 1, 0.4)

Color

icon_focus_color

Color(1, 1, 1, 1)

Color

icon_hover_color

Color(1, 1, 1, 1)

Color

icon_hover_pressed_color

Color(1, 1, 1, 1)

Color

icon_normal_color

Color(1, 1, 1, 1)

Color

icon_pressed_color

Color(1, 1, 1, 1)

int

align_to_largest_stylebox

0

int

h_separation

4

int

icon_max_width

0

int

outline_size

0

Font

font

int

font_size

Texture2D

icon

StyleBox

disabled

StyleBox

disabled_mirrored

StyleBox

focus

StyleBox

hover

StyleBox

hover_mirrored

StyleBox

hover_pressed

StyleBox

hover_pressed_mirrored

StyleBox

normal

StyleBox

normal_mirrored

StyleBox

pressed

StyleBox

pressed_mirrored


Property Descriptions

HorizontalAlignment alignment = 1

There is currently no description for this property. Please help us by contributing one!


AutowrapMode autowrap_mode = 0

There is currently no description for this property. Please help us by contributing one!


bool clip_text = false

  • void set_clip_text ( bool value )

  • bool get_clip_text ( )

There is currently no description for this property. Please help us by contributing one!


bool expand_icon = false

  • void set_expand_icon ( bool value )

  • bool is_expand_icon ( )

There is currently no description for this property. Please help us by contributing one!


bool flat = false

  • void set_flat ( bool value )

  • bool is_flat ( )

There is currently no description for this property. Please help us by contributing one!


Texture2D icon

There is currently no description for this property. Please help us by contributing one!


HorizontalAlignment icon_alignment = 0

There is currently no description for this property. Please help us by contributing one!


String language = ""

  • void set_language ( String value )

  • String get_language ( )

There is currently no description for this property. Please help us by contributing one!


String text = ""

There is currently no description for this property. Please help us by contributing one!


TextDirection text_direction = 0

There is currently no description for this property. Please help us by contributing one!


OverrunBehavior text_overrun_behavior = 0

There is currently no description for this property. Please help us by contributing one!


VerticalAlignment vertical_icon_alignment = 1

There is currently no description for this property. Please help us by contributing one!


Theme Property Descriptions

Color font_color = Color(0.875, 0.875, 0.875, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_disabled_color = Color(0.875, 0.875, 0.875, 0.5)

There is currently no description for this theme property. Please help us by contributing one!


Color font_focus_color = Color(0.95, 0.95, 0.95, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_hover_color = Color(0.95, 0.95, 0.95, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_hover_pressed_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_outline_color = Color(0, 0, 0, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color font_pressed_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_disabled_color = Color(1, 1, 1, 0.4)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_focus_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_hover_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_hover_pressed_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_normal_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


Color icon_pressed_color = Color(1, 1, 1, 1)

There is currently no description for this theme property. Please help us by contributing one!


int align_to_largest_stylebox = 0

There is currently no description for this theme property. Please help us by contributing one!


int h_separation = 4

There is currently no description for this theme property. Please help us by contributing one!


int icon_max_width = 0

There is currently no description for this theme property. Please help us by contributing one!


int outline_size = 0

There is currently no description for this theme property. Please help us by contributing one!


Font font

There is currently no description for this theme property. Please help us by contributing one!


int font_size

There is currently no description for this theme property. Please help us by contributing one!


Texture2D icon

There is currently no description for this theme property. Please help us by contributing one!


StyleBox disabled

There is currently no description for this theme property. Please help us by contributing one!


StyleBox disabled_mirrored

There is currently no description for this theme property. Please help us by contributing one!


StyleBox focus

There is currently no description for this theme property. Please help us by contributing one!


StyleBox hover

There is currently no description for this theme property. Please help us by contributing one!


StyleBox hover_mirrored

There is currently no description for this theme property. Please help us by contributing one!


StyleBox hover_pressed

There is currently no description for this theme property. Please help us by contributing one!


StyleBox hover_pressed_mirrored

There is currently no description for this theme property. Please help us by contributing one!


StyleBox normal

There is currently no description for this theme property. Please help us by contributing one!


StyleBox normal_mirrored

There is currently no description for this theme property. Please help us by contributing one!


StyleBox pressed

There is currently no description for this theme property. Please help us by contributing one!


StyleBox pressed_mirrored

There is currently no description for this theme property. Please help us by contributing one!