A container that can be expanded/collapsed.
A container that can be expanded/collapsed, with a title that can be filled with controls, such as buttons.
The title can be positioned at the top or bottom of the container.
The container can be expanded or collapsed by clicking the title or by pressing [code]ui_accept[/code] when focused.
Child control nodes are hidden when the container is collapsed. Ignores non-control children.
Can allow grouping with other FoldableContainers, check [member foldable_group] and [FoldableGroup].
Adds a [Control] that will be placed next to the container's title, obscuring the clickable area. Prime usage is adding [Button] nodes, but it can be any [Control].
The control will be added as a child of this container and removed from previous parent if necessary. The controls will be placed aligned to the right, with the first added control being the leftmost one.
Expands the container and emits [signal folding_changed].
Folds the container and emits [signal folding_changed].
Removes a [Control] added with [method add_title_bar_control]. The node is not freed automatically, you need to use [method Node.queue_free].
The [FoldableGroup] associated with the container.
If [code]true[/code], the container will becomes folded and will hide all its children.
Language code used for text shaping algorithms. If left empty, current locale is used instead.
The Container's title text.
Base text writing direction.
Defines the behavior of the [FoldableContainer] when the text is longer than the available space.
Title's horizontal text alignment as defined in the [enum HorizontalAlignment] enum.
Title's position as defined in the [enum TitlePosition] enum.
Emitted when the container is folded/expanded.
Makes the title appear at the top of the container.
Makes the title appear at the bottom of the container. Also makes all StyleBoxes flipped vertically.
The title's font color when collapsed.
The title's font color when expanded.
The title's font outline color.
The title's font hover color.
The horizontal separation between the title's icon and text, and between title bar controls.
The title's font outline size.
The title's font.
The title's font size.
The title's icon used when expanded.
The title's icon used when expanded (for bottom title).
The title's icon used when folded (for left-to-right layouts).
The title's icon used when collapsed (for right-to-left layouts).
Background used when [FoldableContainer] has GUI focus. The [theme_item focus] [StyleBox] is displayed [i]over[/i] the base [StyleBox], so a partially transparent [StyleBox] should be used to ensure the base [StyleBox] remains visible. A [StyleBox] that represents an outline or an underline works well for this purpose. To disable the focus visual effect, assign a [StyleBoxEmpty] resource. Note that disabling the focus visual effect will harm keyboard/controller navigation usability, so this is not recommended for accessibility reasons.
Default background for the [FoldableContainer].
Background used when the mouse cursor enters the title's area when collapsed.
Default background for the [FoldableContainer]'s title when collapsed.
Background used when the mouse cursor enters the title's area when expanded.
Default background for the [FoldableContainer]'s title when expanded.