0.2.0-dev Download ZIP
39 lines ·1.7 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="FoldableGroup" inherits="Resource" api_type="core" keywords="expandable, collapsible, collapse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A group of foldable containers that doesn't allow more than one container to be expanded at a time. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | A group of [FoldableContainer]-derived nodes. Only one container can be expanded at a time. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <methods> |
| 12 | <method name="get_containers" qualifiers="const"> |
| 13 | <return type="FoldableContainer[]" /> |
| 14 | <description> |
| 15 | Returns an [Array] of [FoldableContainer]s that have this as their FoldableGroup (see [member FoldableContainer.foldable_group]). This is equivalent to [ButtonGroup] but for FoldableContainers. |
| 16 | </description> |
| 17 | </method> |
| 18 | <method name="get_expanded_container" qualifiers="const"> |
| 19 | <return type="FoldableContainer" /> |
| 20 | <description> |
| 21 | Returns the current expanded container. |
| 22 | </description> |
| 23 | </method> |
| 24 | </methods> |
| 25 | <members> |
| 26 | <member name="allow_folding_all" type="bool" setter="set_allow_folding_all" getter="is_allow_folding_all" default="false"> |
| 27 | If [code]true[/code], it is possible to fold all containers in this FoldableGroup. |
| 28 | </member> |
| 29 | <member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="true" /> |
| 30 | </members> |
| 31 | <signals> |
| 32 | <signal name="expanded"> |
| 33 | <param index="0" name="container" type="FoldableContainer" /> |
| 34 | <description> |
| 35 | Emitted when one of the containers of the group is expanded. |
| 36 | </description> |
| 37 | </signal> |
| 38 | </signals> |
| 39 | </class> |