class_buttongroup - dragonsoulz/godot GitHub Wiki

ButtonGroup

####Inherits: Control ####Category: Core

Brief Description

Group of Buttons.

Member Functions

Description

Group of Buttons. All direct and indirect children buttons become radios. Only one allows being pressed.

Member Function Description

get_pressed_button

Return the pressed button.

get_pressed_button_index

  • int get_pressed_button_index ( ) const

Return the index of the pressed button (by tree order).

get_focused_button

Return the focused button.

get_button_list

  • Array get_button_list ( ) const

Return the list of all the buttons in the group.

set_pressed_button

Set the button to be pressed.