Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

FoldableGroup

Hérite de : Resource < RefCounted < Object

A group of foldable containers that doesn't allow more than one container to be expanded at a time.

Description

A group of FoldableContainer-derived nodes. Only one container can be expanded at a time.

Propriétés

bool

allow_folding_all

false

bool

resource_local_to_scene

true (overrides Resource)

Méthodes

Array[FoldableContainer]

get_containers() const

FoldableContainer

get_expanded_container() const


Signaux

expanded(container: FoldableContainer) 🔗

Emitted when one of the containers of the group is expanded.


Descriptions des propriétés

bool allow_folding_all = false 🔗

  • void set_allow_folding_all(value: bool)

  • bool is_allow_folding_all()

Si true, il est possible de replier tous les conteneurs dans ce FoldableGroup.


Descriptions des méthodes

Array[FoldableContainer] get_containers() const 🔗

Returns an Array of FoldableContainers that have this as their FoldableGroup (see FoldableContainer.foldable_group). This is equivalent to ButtonGroup but for FoldableContainers.


FoldableContainer get_expanded_container() const 🔗

Returns the current expanded container.