[gd_scene load_steps=7 format=2] [ext_resource path="res://src/UI/Dialogs/ManageLayouts.gd" type="Script" id=1] [ext_resource path="res://addons/dockable_container/layout_panel.gd" type="Script" id=2] [ext_resource path="res://addons/dockable_container/layout.gd" type="Script" id=3] [ext_resource path="res://addons/dockable_container/dockable_container.gd" type="Script" id=4] [sub_resource type="Resource" id=1] resource_name = "Tabs" script = ExtResource( 2 ) names = PoolStringArray( ) current_tab = 0 [sub_resource type="Resource" id=2] resource_name = "Layout" script = ExtResource( 3 ) root = SubResource( 1 ) hidden_tabs = { } [node name="ManageLayouts" type="AcceptDialog"] margin_right = 543.0 margin_bottom = 562.0 window_title = "Manage Layouts" resizable = true script = ExtResource( 1 ) [node name="VBoxContainer" type="VBoxContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 8.0 margin_top = 8.0 margin_right = -8.0 margin_bottom = -36.0 [node name="PreviewHeader" type="HBoxContainer" parent="VBoxContainer"] margin_right = 527.0 margin_bottom = 14.0 custom_constants/separation = 0 [node name="Label" type="Label" parent="VBoxContainer/PreviewHeader"] margin_right = 50.0 margin_bottom = 14.0 theme_type_variation = "Header" text = "Preview" [node name="HSeparator" type="HSeparator" parent="VBoxContainer/PreviewHeader"] margin_left = 50.0 margin_right = 527.0 margin_bottom = 14.0 size_flags_horizontal = 3 [node name="PreviewInstruction" type="Label" parent="VBoxContainer"] margin_top = 18.0 margin_right = 527.0 margin_bottom = 32.0 text = "This is a preview, changing this won't change the layout" align = 1 autowrap = true [node name="PreviewContainer" type="ScrollContainer" parent="VBoxContainer"] margin_top = 36.0 margin_right = 527.0 margin_bottom = 354.0 size_flags_vertical = 3 [node name="LayoutPreview" type="Container" parent="VBoxContainer/PreviewContainer"] margin_right = 527.0 margin_bottom = 318.0 size_flags_horizontal = 3 size_flags_vertical = 3 script = ExtResource( 4 ) tabs_visible = false layout = SubResource( 2 ) [node name="LayoutsHeader" type="HBoxContainer" parent="VBoxContainer"] margin_top = 358.0 margin_right = 527.0 margin_bottom = 372.0 custom_constants/separation = 0 [node name="Label" type="Label" parent="VBoxContainer/LayoutsHeader"] margin_right = 49.0 margin_bottom = 14.0 theme_type_variation = "Header" text = "Layouts" [node name="HSeparator" type="HSeparator" parent="VBoxContainer/LayoutsHeader"] margin_left = 49.0 margin_right = 527.0 margin_bottom = 14.0 size_flags_horizontal = 3 [node name="LayoutInstruction" type="Label" parent="VBoxContainer"] margin_top = 376.0 margin_right = 527.0 margin_bottom = 390.0 text = "Double click to set as new startup layout" autowrap = true [node name="SavedLayouts" type="ItemList" parent="VBoxContainer"] margin_top = 394.0 margin_right = 527.0 margin_bottom = 494.0 rect_min_size = Vector2( 0, 100 ) [node name="ButtonsContainer" type="HBoxContainer" parent="VBoxContainer"] margin_top = 498.0 margin_right = 527.0 margin_bottom = 518.0 [node name="AddLayout" type="Button" parent="VBoxContainer/ButtonsContainer"] margin_right = 37.0 margin_bottom = 20.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 0 text = "Add" [node name="EditLayout" type="Button" parent="VBoxContainer/ButtonsContainer"] margin_left = 41.0 margin_right = 77.0 margin_bottom = 20.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 0 disabled = true text = "Edit" [node name="DeleteLayout" type="Button" parent="VBoxContainer/ButtonsContainer"] margin_left = 81.0 margin_right = 136.0 margin_bottom = 20.0 mouse_default_cursor_shape = 2 size_flags_horizontal = 0 disabled = true text = "Delete" [node name="LayoutSettings" type="ConfirmationDialog" parent="."] margin_left = 8.0 margin_top = 8.0 margin_right = 180.0 margin_bottom = 76.0 rect_min_size = Vector2( 172, 60.2 ) resizable = true [node name="LayoutName" type="LineEdit" parent="LayoutSettings"] anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 margin_left = 8.0 margin_top = -26.0 margin_right = -8.0 margin_bottom = -2.0 size_flags_horizontal = 3 placeholder_text = "Insert name" [node name="DeleteConfirmation" type="ConfirmationDialog" parent="."] margin_left = 8.0 margin_top = 8.0 margin_right = 305.0 margin_bottom = 68.2 rect_min_size = Vector2( 172, 60.2 ) dialog_text = "Are you sure you want to delete this layout?" [connection signal="about_to_show" from="." to="." method="_on_ManageLayouts_about_to_show"] [connection signal="popup_hide" from="." to="." method="_on_ManageLayouts_popup_hide"] [connection signal="item_activated" from="VBoxContainer/SavedLayouts" to="." method="_on_SavedLayouts_item_activated"] [connection signal="item_selected" from="VBoxContainer/SavedLayouts" to="." method="_on_SavedLayouts_item_selected"] [connection signal="nothing_selected" from="VBoxContainer/SavedLayouts" to="." method="_on_SavedLayouts_nothing_selected"] [connection signal="pressed" from="VBoxContainer/ButtonsContainer/AddLayout" to="." method="_on_AddLayout_pressed"] [connection signal="pressed" from="VBoxContainer/ButtonsContainer/EditLayout" to="." method="_on_EditLayout_pressed"] [connection signal="pressed" from="VBoxContainer/ButtonsContainer/DeleteLayout" to="." method="_on_DeleteLayout_pressed"] [connection signal="confirmed" from="LayoutSettings" to="." method="_on_LayoutSettings_confirmed"] [connection signal="confirmed" from="DeleteConfirmation" to="." method="_on_DeleteConfirmation_confirmed"]