1- [gd_scene load_steps =5 format =3 uid ="uid://dy11txudwdmgy" ]
1+ [gd_scene load_steps =6 format =3 uid ="uid://dy11txudwdmgy" ]
22
33[ext_resource type ="Texture2D" uid ="uid://brwp8bimc75uu" path ="res://icon.webp" id ="1_8tycj" ]
44[ext_resource type ="Script" uid ="uid://bh4pfy7ykbtl2" path ="res://tree.gd" id ="2_68sc3" ]
@@ -16,6 +16,9 @@ corner_radius_bottom_left = 5
1616
1717[sub_resource type ="ButtonGroup" id ="ButtonGroup_t0nh8" ]
1818
19+ [sub_resource type ="FoldableGroup" id ="FoldableGroup_wdd8d" ]
20+ allow_folding_all = true
21+
1922[node name ="ControlGallery" type ="Control" ]
2023layout_mode = 3
2124anchors_preset = 15
@@ -114,9 +117,11 @@ text = "Label"
114117[node name ="TabContainer" type ="TabContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer" ]
115118custom_minimum_size = Vector2 (0 , 236 )
116119layout_mode = 2
120+ current_tab = 0
117121
118122[node name ="Tab 1" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
119123layout_mode = 2
124+ metadata/_tab_index = 0
120125
121126[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 1" ]
122127layout_mode = 1
@@ -141,6 +146,7 @@ selection_enabled = true
141146[node name ="Tab 2" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
142147visible = false
143148layout_mode = 2
149+ metadata/_tab_index = 1
144150
145151[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 2" ]
146152layout_mode = 1
@@ -165,6 +171,7 @@ selection_enabled = true
165171[node name ="Tab 3" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
166172visible = false
167173layout_mode = 2
174+ metadata/_tab_index = 2
168175
169176[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 3" ]
170177layout_mode = 1
@@ -189,6 +196,7 @@ selection_enabled = true
189196[node name ="Tab 4" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
190197visible = false
191198layout_mode = 2
199+ metadata/_tab_index = 3
192200
193201[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 4" ]
194202layout_mode = 1
@@ -213,6 +221,7 @@ selection_enabled = true
213221[node name ="Tab 5" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
214222visible = false
215223layout_mode = 2
224+ metadata/_tab_index = 4
216225
217226[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 5" ]
218227layout_mode = 1
@@ -237,6 +246,7 @@ selection_enabled = true
237246[node name ="Tab 6" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
238247visible = false
239248layout_mode = 2
249+ metadata/_tab_index = 5
240250
241251[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 6" ]
242252layout_mode = 1
@@ -261,6 +271,7 @@ selection_enabled = true
261271[node name ="Tab 7" type ="Control" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer" ]
262272visible = false
263273layout_mode = 2
274+ metadata/_tab_index = 6
264275
265276[node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 7" ]
266277layout_mode = 1
@@ -401,8 +412,8 @@ size_flags_horizontal = 3
401412[node name ="OptionButton" type ="OptionButton" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer" ]
402413layout_mode = 2
403414size_flags_horizontal = 0
404- item_count = 5
405415selected = 0
416+ item_count = 5
406417popup/item_0/text = "OptionButton"
407418popup/item_0/id = 4
408419popup/item_1/text = "Item 1"
@@ -492,3 +503,42 @@ layout_mode = 2
492503size_flags_vertical = 3
493504select_mode = 2
494505script = ExtResource ("2_68sc3" )
506+
507+ [node name ="FoldableContainer" type ="FoldableContainer" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2" ]
508+ layout_mode = 2
509+ title = "FoldableContainer with FoldableGroup"
510+ foldable_group = SubResource ("FoldableGroup_wdd8d" )
511+
512+ [node name ="MarginContainer" type ="MarginContainer" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2/FoldableContainer" ]
513+ layout_mode = 2
514+ theme_override_constants/margin_left = 10
515+ theme_override_constants/margin_top = 5
516+ theme_override_constants/margin_right = 10
517+ theme_override_constants/margin_bottom = 5
518+
519+ [node name ="Label" type ="Label" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2/FoldableContainer/MarginContainer" ]
520+ layout_mode = 2
521+ theme_override_colors/font_color = Color (0.7529412 , 0.7529412 , 0.7529412 , 1 )
522+ text = "FoldableGroup only allows one of the
523+ FoldableContainers to be open at a time"
524+
525+ [node name ="FoldableContainer2" type ="FoldableContainer" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2" ]
526+ layout_mode = 2
527+ folded = true
528+ title = "FoldableContainer with FoldableGroup"
529+ title_position = 1
530+ foldable_group = SubResource ("FoldableGroup_wdd8d" )
531+
532+ [node name ="MarginContainer2" type ="MarginContainer" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2/FoldableContainer2" ]
533+ visible = false
534+ layout_mode = 2
535+ theme_override_constants/margin_left = 10
536+ theme_override_constants/margin_top = 5
537+ theme_override_constants/margin_right = 10
538+ theme_override_constants/margin_bottom = 5
539+
540+ [node name ="Label" type ="Label" parent ="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2/FoldableContainer2/MarginContainer2" ]
541+ layout_mode = 2
542+ theme_override_colors/font_color = Color (0.7529412 , 0.7529412 , 0.7529412 , 1 )
543+ text = "Second foldable container
544+ expanding from the bottom"
0 commit comments