2017-09-13 04:42:36 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-02-01 09:03:48 +08:00
|
|
|
<class name="ButtonGroup" inherits="Resource" version="4.0">
|
2017-09-13 04:42:36 +08:00
|
|
|
<brief_description>
|
|
|
|
Group of Buttons.
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
Group of [Button]. All direct and indirect children buttons become radios. Only one allows being pressed.
|
2018-02-21 14:53:30 +08:00
|
|
|
[member BaseButton.toggle_mode] should be [code]true[/code].
|
2017-09-13 04:42:36 +08:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2018-12-14 13:39:31 +08:00
|
|
|
<method name="get_buttons">
|
|
|
|
<return type="Array">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-10-24 13:19:18 +08:00
|
|
|
Returns an [Array] of [Button]s who have this as their [ButtonGroup] (see [member BaseButton.button_group]).
|
2018-12-14 13:39:31 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
2017-09-13 04:42:36 +08:00
|
|
|
<method name="get_pressed_button">
|
|
|
|
<return type="BaseButton">
|
|
|
|
</return>
|
|
|
|
<description>
|
2018-12-14 13:39:31 +08:00
|
|
|
Returns the current pressed button.
|
2017-09-13 04:42:36 +08:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
2019-09-03 18:44:58 +08:00
|
|
|
<members>
|
2019-09-24 19:34:03 +08:00
|
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" override="true" default="true" />
|
2019-09-03 18:44:58 +08:00
|
|
|
</members>
|
2017-09-13 04:42:36 +08:00
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|