Skip to content

ButtonSubMenu ​

Inherits: MarginContainer

A button of the settings menu that opens one of its sub menus (display, audio, controls ...): its text, with colors for the normal, the highlighted and the active state. button_up is emitted when it is pressed.

Properties ​

Stringbutton_text
Colortext_normal_color
Colorbrackets_active_color
Colortext_highlight_color
Coloractive_colour_highlight

Variables ​

boolactivefalse

Signals ​

button_up( button: MarginContainer ) ​

Emitted when the button is released.

Property descriptions ​

String button_text ​

The text of the button.

Color text_normal_color ​

The color of the text.

Color brackets_active_color ​

The color of the brackets around the text when it is the one open.

Color text_highlight_color ​

The color of the text under the mouse.

Color active_colour_highlight ​

The color of the button when it is the one open.

Variable descriptions ​

bool active = false ​

True when this is the sub menu that is open.