class_buttongroup - vkbsb/godot GitHub Wiki
ButtonGroup
####Inherits: Control ####Category: Core
Brief Description
Group of Buttons.
Member Functions
- BaseButton get_pressed_button ( ) const
- int get_pressed_button_index ( ) const
- BaseButton get_focused_button ( ) const
- Array get_button_list ( ) const
- void set_pressed_button ( BaseButton button )
Description
Group of Buttons. All direct and indirect children buttons become radios. Only one allows being pressed.
Member Function Description
get_pressed_button
- BaseButton get_pressed_button ( ) const
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
- BaseButton get_focused_button ( ) const
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
- void set_pressed_button ( BaseButton button )
Set the button to be pressed.