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.
Checking the stable version of the documentation...
FoldableGroup
继承: Resource < RefCounted < Object
一组可折叠容器,不允许同一时间有超过一个容器处于展开状态。
描述
一组派生自 FoldableContainer 的节点的分组。同一时间只能有一个容器处于展开状态。
属性
|
||
resource_local_to_scene |
|
方法
get_containers() const |
|
get_expanded_container() const |
信号
expanded(container: FoldableContainer) 🔗
当该组中的某个容器被展开时发出。
属性说明
bool allow_folding_all = false 🔗
如果为 true,则可以折叠 FoldableGroup 中的所有容器。
方法说明
Array[FoldableContainer] get_containers() const 🔗
返回一个 Array,其中的元素是使用该 FoldableGroup 的 FoldableContainer(见 FoldableContainer.foldable_group)。等价于 ButtonGroup,但适用于 FoldableContainer。
FoldableContainer get_expanded_container() const 🔗
返回当前展开的容器。