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 🔗
回傳目前展開的容器。