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. This is also called an accordion. 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. A FoldableContainer can be grouped with other FoldableContainers so that only one of them can be opened at a time; see [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. When multiple [FoldableContainer] nodes share the same group, only one of them is allowed to be unfolded.
- 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, the current locale is used instead.
- The container's title text.
- Title's horizontal text alignment.
- Title's position.
- Title text writing direction.
- Defines the behavior of the title when the text is longer than the available space.
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.