123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494 |
- [gd_scene load_steps=5 format=3 uid="uid://dy11txudwdmgy"]
- [ext_resource type="Texture2D" uid="uid://bc22e06hdx8c" path="res://icon.webp" id="1_8tycj"]
- [ext_resource type="Script" path="res://tree.gd" id="2_68sc3"]
- [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bl4wp"]
- content_margin_left = 10.0
- content_margin_top = 10.0
- content_margin_right = 10.0
- content_margin_bottom = 10.0
- bg_color = Color(0.309804, 0.309804, 0.309804, 1)
- corner_radius_top_left = 5
- corner_radius_top_right = 5
- corner_radius_bottom_right = 5
- corner_radius_bottom_left = 5
- [sub_resource type="ButtonGroup" id="ButtonGroup_t0nh8"]
- [node name="ControlGallery" type="Control"]
- layout_mode = 3
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- [node name="MainPanel" type="ColorRect" parent="."]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- color = Color(0.211765, 0.211765, 0.211765, 1)
- [node name="HSplitContainer" type="HSplitContainer" parent="MainPanel"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- offset_left = 5.0
- offset_top = 5.0
- offset_right = -5.0
- offset_bottom = -5.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/separation = 0
- theme_override_constants/minimum_grab_thickness = 24
- [node name="BasicControls" type="PanelContainer" parent="MainPanel/HSplitContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
- [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/BasicControls"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="Title" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- theme_override_font_sizes/font_size = 24
- text = "Basic controls"
- horizontal_alignment = 1
- [node name="Button" type="Button" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- text = "Button"
- [node name="LinkButton" type="LinkButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- tooltip_text = "This is a tooltip.
- Its background is styled using the TooltipPanel class within a Theme resource.
- Its text is styled using the TooltipLabel class within a Theme resource."
- text = "LinkButton (hover me for tooltip)"
- [node name="ColorPickerContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- [node name="ColorPickerButton" type="ColorPickerButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/ColorPickerContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_stretch_ratio = 0.3
- color = Color(0.278431, 0.54902, 0.74902, 1)
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/ColorPickerContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- text = "ColorPickerButton"
- [node name="CheckBox" type="CheckBox" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- text = "CheckBox"
- [node name="CheckButton" type="CheckButton" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- text = "CheckButton"
- [node name="LineEdit" type="LineEdit" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- text = "LineEdit"
- [node name="TextEdit" type="TextEdit" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- custom_minimum_size = Vector2(0, 110)
- layout_mode = 2
- text = "TextEdit
- Unlike LineEdit, I accept multiple lines."
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- layout_mode = 2
- text = "Label"
- [node name="TabContainer" type="TabContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer"]
- custom_minimum_size = Vector2(0, 236)
- layout_mode = 2
- [node name="Tab 1" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 1"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 1/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#8ff]Tab 1[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 2" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 2"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 2/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#ff8]Tab 2[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 3" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 3"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 3/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#8f8]Tab 3[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 4" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 4"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 4/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#f88]Tab 4[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 5" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 5"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 5/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#f8f]Tab 5[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 6" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 6"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 6/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#b8f]Tab 6[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="Tab 7" type="Control" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer"]
- visible = false
- layout_mode = 2
- [node name="MarginContainer" type="MarginContainer" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 7"]
- layout_mode = 1
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- theme_override_constants/margin_left = 10
- theme_override_constants/margin_top = 30
- theme_override_constants/margin_right = 10
- theme_override_constants/margin_bottom = 30
- [node name="RichTextLabel" type="RichTextLabel" parent="MainPanel/HSplitContainer/BasicControls/VBoxContainer/TabContainer/Tab 7/MarginContainer"]
- layout_mode = 2
- focus_mode = 2
- bbcode_enabled = true
- text = "[center]RichTextLabel: [color=#fb6]Tab 7[/color] is selected.[/center]"
- context_menu_enabled = true
- selection_enabled = true
- [node name="VSplitContainer" type="VSplitContainer" parent="MainPanel/HSplitContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_stretch_ratio = 2.0
- theme_override_constants/separation = 0
- theme_override_constants/minimum_grab_thickness = 24
- [node name="Numbers" type="PanelContainer" parent="MainPanel/HSplitContainer/VSplitContainer"]
- layout_mode = 2
- theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
- [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers"]
- layout_mode = 2
- [node name="Title" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- layout_mode = 2
- theme_override_font_sizes/font_size = 24
- text = "Numbers"
- horizontal_alignment = 1
- [node name="SpinBox" type="SpinBox" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- custom_minimum_size = Vector2(255, 0)
- layout_mode = 2
- size_flags_horizontal = 0
- prefix = "SpinBox"
- [node name="HSliderContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- layout_mode = 2
- theme_override_constants/separation = 10
- [node name="HSlider" type="HSlider" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSliderContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_stretch_ratio = 0.5
- value = 50.0
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSliderContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- text = "HSlider"
- [node name="ProgressBarContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- layout_mode = 2
- theme_override_constants/separation = 10
- [node name="ProgressBar" type="ProgressBar" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/ProgressBarContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_stretch_ratio = 0.5
- value = 50.0
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/ProgressBarContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- text = "ProgressBar"
- [node name="HSeparatorContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- layout_mode = 2
- [node name="HSeparatorLeft" type="HSeparator" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
- layout_mode = 2
- text = "HSeparator"
- [node name="HSeparatorRight" type="HSeparator" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/HSeparatorContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="TextureProgressContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer"]
- layout_mode = 2
- [node name="Control" type="Control" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer"]
- custom_minimum_size = Vector2(64, 64)
- layout_mode = 2
- [node name="TextureProgressBar" type="TextureProgressBar" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer/Control"]
- layout_mode = 0
- offset_right = 128.0
- offset_bottom = 128.0
- scale = Vector2(0.5, 0.5)
- value = 67.0
- fill_mode = 4
- texture_progress = ExtResource("1_8tycj")
- [node name="Label" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Numbers/VBoxContainer/TextureProgressContainer"]
- layout_mode = 2
- text = "TextureProgressBar"
- [node name="Lists" type="PanelContainer" parent="MainPanel/HSplitContainer/VSplitContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- size_flags_vertical = 3
- size_flags_stretch_ratio = 2.5
- theme_override_styles/panel = SubResource("StyleBoxFlat_bl4wp")
- [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists"]
- layout_mode = 2
- [node name="Title" type="Label" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer"]
- layout_mode = 2
- theme_override_font_sizes/font_size = 24
- text = "Lists"
- horizontal_alignment = 1
- [node name="HBoxContainer" type="HBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer"]
- layout_mode = 2
- size_flags_vertical = 3
- theme_override_constants/separation = 10
- [node name="VBoxContainer" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="OptionButton" type="OptionButton" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 0
- item_count = 5
- selected = 0
- popup/item_0/text = "OptionButton"
- popup/item_0/id = 4
- popup/item_1/text = "Item 1"
- popup/item_1/id = 0
- popup/item_2/text = "Item 2"
- popup/item_2/id = 1
- popup/item_3/text = "Separator"
- popup/item_3/id = 3
- popup/item_3/separator = true
- popup/item_4/text = "Disabled Item"
- popup/item_4/id = 2
- popup/item_4/disabled = true
- [node name="MenuButton" type="MenuButton" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
- custom_minimum_size = Vector2(150, 0)
- layout_mode = 2
- size_flags_horizontal = 0
- text = "MenuButton"
- flat = false
- item_count = 8
- popup/item_0/text = "Action Item"
- popup/item_0/id = 0
- popup/item_1/text = "Separator"
- popup/item_1/id = 1
- popup/item_1/separator = true
- popup/item_2/text = "Checkbox Item 1"
- popup/item_2/checkable = 1
- popup/item_2/id = 2
- popup/item_3/text = "Checkbox Item 2"
- popup/item_3/checkable = 1
- popup/item_3/id = 3
- popup/item_4/text = "Disabled Checkbox Item"
- popup/item_4/checkable = 1
- popup/item_4/id = 4
- popup/item_4/disabled = true
- popup/item_5/text = "Separator"
- popup/item_5/id = 5
- popup/item_5/separator = true
- popup/item_6/text = "Radio Item 1"
- popup/item_6/checkable = 2
- popup/item_6/checked = true
- popup/item_6/id = 6
- popup/item_7/text = "Radio Item 2"
- popup/item_7/checkable = 2
- popup/item_7/id = 7
- [node name="RadioButtons" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 0
- [node name="CheckBox" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
- layout_mode = 2
- button_pressed = true
- button_group = SubResource("ButtonGroup_t0nh8")
- text = "CheckBox with ButtonGroup assigned 1"
- [node name="CheckBox2" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
- layout_mode = 2
- button_group = SubResource("ButtonGroup_t0nh8")
- text = "CheckBox with ButtonGroup assigned 2"
- [node name="CheckBox3" type="CheckBox" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer/RadioButtons"]
- layout_mode = 2
- button_group = SubResource("ButtonGroup_t0nh8")
- text = "CheckBox with ButtonGroup assigned 3"
- [node name="ItemList" type="ItemList" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer"]
- layout_mode = 2
- size_flags_vertical = 3
- select_mode = 1
- item_count = 4
- fixed_icon_size = Vector2i(16, 16)
- item_0/text = "ItemList - Item 1"
- item_1/text = "ItemList - Item 2"
- item_2/text = "ItemList - Disabled item with icon assigned"
- item_2/icon = ExtResource("1_8tycj")
- item_2/disabled = true
- item_3/text = "ItemList - Item 3 with icon assigned"
- item_3/icon = ExtResource("1_8tycj")
- [node name="VBoxContainer2" type="VBoxContainer" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer"]
- layout_mode = 2
- size_flags_horizontal = 3
- [node name="Tree" type="Tree" parent="MainPanel/HSplitContainer/VSplitContainer/Lists/VBoxContainer/HBoxContainer/VBoxContainer2"]
- layout_mode = 2
- size_flags_vertical = 3
- select_mode = 2
- script = ExtResource("2_68sc3")
|