mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add FoldableContainer
Co-authored-by: WhalesState <whalesstate@gmail.com>
This commit is contained in:
parent
4248411baf
commit
13741ff913
11 changed files with 1082 additions and 0 deletions
39
doc/classes/FoldableGroup.xml
Normal file
39
doc/classes/FoldableGroup.xml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<class name="FoldableGroup" inherits="Resource" keywords="expandable, collapsible, collapse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
|
||||
<brief_description>
|
||||
A group of foldable containers that doesn't allow more than one container to be expanded at a time.
|
||||
</brief_description>
|
||||
<description>
|
||||
A group of [FoldableContainer]-derived nodes. Only one container can be expanded at a time.
|
||||
</description>
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="get_containers" qualifiers="const">
|
||||
<return type="FoldableContainer[]" />
|
||||
<description>
|
||||
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.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_expanded_container" qualifiers="const">
|
||||
<return type="FoldableContainer" />
|
||||
<description>
|
||||
Returns the current expanded container.
|
||||
</description>
|
||||
</method>
|
||||
</methods>
|
||||
<members>
|
||||
<member name="allow_folding_all" type="bool" setter="set_allow_folding_all" getter="is_allow_folding_all" default="false">
|
||||
If [code]true[/code], it is possible to fold all containers in this FoldableGroup.
|
||||
</member>
|
||||
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="true" />
|
||||
</members>
|
||||
<signals>
|
||||
<signal name="expanded">
|
||||
<param index="0" name="container" type="FoldableContainer" />
|
||||
<description>
|
||||
Emitted when one of the containers of the group is expanded.
|
||||
</description>
|
||||
</signal>
|
||||
</signals>
|
||||
</class>
|
||||
Loading…
Add table
Add a link
Reference in a new issue