2017-09-12 17:42:36 -03:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-08-05 18:51:38 +02:00
|
|
|
<class name="ButtonGroup" inherits="Resource" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
2017-09-12 17:42:36 -03: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 15:53:30 +09:00
|
|
|
[member BaseButton.toggle_mode] should be [code]true[/code].
|
2017-09-12 17:42:36 -03:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2018-12-14 03:39:31 -02:00
|
|
|
<method name="get_buttons">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Array" />
|
2018-12-14 03:39:31 -02:00
|
|
|
<description>
|
2019-03-29 23:37:35 +01:00
|
|
|
Returns an [Array] of [Button]s who have this as their [ButtonGroup] (see [member BaseButton.group]).
|
2018-12-14 03:39:31 -02:00
|
|
|
</description>
|
|
|
|
</method>
|
2017-09-12 17:42:36 -03:00
|
|
|
<method name="get_pressed_button">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="BaseButton" />
|
2017-09-12 17:42:36 -03:00
|
|
|
<description>
|
2018-12-14 03:39:31 -02:00
|
|
|
Returns the current pressed button.
|
2017-09-12 17:42:36 -03:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
2019-09-03 13:44:58 +03:00
|
|
|
<members>
|
2021-12-02 23:15:17 +03:00
|
|
|
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="true" />
|
2019-09-03 13:44:58 +03:00
|
|
|
</members>
|
2021-05-06 12:16:27 +02:00
|
|
|
<signals>
|
|
|
|
<signal name="pressed">
|
2021-07-30 15:28:05 +02:00
|
|
|
<argument index="0" name="button" type="Object" />
|
2021-05-06 12:16:27 +02:00
|
|
|
<description>
|
|
|
|
Emitted when one of the buttons of the group is pressed.
|
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
2017-09-12 17:42:36 -03:00
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|