Class reference

ButtonGroup

Inherits Resource

A group of buttons that doesn't allow more than one button to be pressed at a time.

Description

A group of BaseButton-derived buttons. The buttons in a ButtonGroup are treated like radio buttons: No more than one button can be pressed at a time. Some types of buttons (such as CheckBox) may have a special appearance in this state. Every member of a ButtonGroup should have BaseButton.toggle_mode set to true.

Properties

bool allow_unpress = false

If true, it is possible to unpress all buttons in this ButtonGroup.

bool resource_local_to_scene = true

Methods

BaseButton get_pressed_button()

Returns the current pressed button.

Signals

pressed(BaseButton button)

Emitted when one of the buttons of the group is pressed.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.