2022-12-07 13:43:49 +00:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2022-02-05 23:49:54 +00:00
|
|
|
|
|
|
|
[ext_resource path="res://src/UI/Dialogs/ManageLayouts.gd" type="Script" id=1]
|
2022-12-07 13:43:49 +00:00
|
|
|
[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( )
|
2023-03-16 23:20:17 +00:00
|
|
|
current_tab = 0
|
2022-12-07 13:43:49 +00:00
|
|
|
|
|
|
|
[sub_resource type="Resource" id=2]
|
|
|
|
resource_name = "Layout"
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
root = SubResource( 1 )
|
|
|
|
hidden_tabs = {
|
|
|
|
}
|
2022-02-05 23:49:54 +00:00
|
|
|
|
|
|
|
[node name="ManageLayouts" type="AcceptDialog"]
|
2022-12-07 13:43:49 +00:00
|
|
|
margin_right = 543.0
|
|
|
|
margin_bottom = 562.0
|
2022-02-05 23:49:54 +00:00
|
|
|
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
|
|
|
|
|
2022-12-07 13:43:49 +00:00
|
|
|
[node name="PreviewHeader" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
margin_right = 527.0
|
2022-02-05 23:49:54 +00:00
|
|
|
margin_bottom = 14.0
|
2022-12-07 13:43:49 +00:00
|
|
|
custom_constants/separation = 0
|
2022-02-05 23:49:54 +00:00
|
|
|
|
2022-12-07 13:43:49 +00:00
|
|
|
[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"]
|
2022-02-05 23:49:54 +00:00
|
|
|
margin_top = 18.0
|
2022-12-07 13:43:49 +00:00
|
|
|
margin_right = 527.0
|
|
|
|
margin_bottom = 32.0
|
2023-03-16 23:20:17 +00:00
|
|
|
text = "This is a preview, changing this won't change the layout"
|
2022-12-07 13:43:49 +00:00
|
|
|
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
|
2022-02-05 23:49:54 +00:00
|
|
|
size_flags_vertical = 3
|
2022-12-07 13:43:49 +00:00
|
|
|
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 )
|
2022-02-05 23:49:54 +00:00
|
|
|
|
2022-03-17 22:01:16 +00:00
|
|
|
[node name="ButtonsContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2022-12-07 13:43:49 +00:00
|
|
|
margin_top = 498.0
|
|
|
|
margin_right = 527.0
|
|
|
|
margin_bottom = 518.0
|
2022-03-17 22:01:16 +00:00
|
|
|
|
|
|
|
[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
|
2022-02-05 23:49:54 +00:00
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
size_flags_horizontal = 0
|
|
|
|
disabled = true
|
|
|
|
text = "Delete"
|
|
|
|
|
2022-03-17 22:01:16 +00:00
|
|
|
[node name="LayoutSettings" type="ConfirmationDialog" parent="."]
|
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
2023-03-16 23:20:17 +00:00
|
|
|
margin_right = 180.0
|
|
|
|
margin_bottom = 76.0
|
2022-12-07 13:43:49 +00:00
|
|
|
rect_min_size = Vector2( 172, 60.2 )
|
2022-03-17 22:01:16 +00:00
|
|
|
resizable = true
|
2022-02-05 23:49:54 +00:00
|
|
|
|
2022-03-17 22:01:16 +00:00
|
|
|
[node name="LayoutName" type="LineEdit" parent="LayoutSettings"]
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
margin_left = 8.0
|
2023-03-16 23:20:17 +00:00
|
|
|
margin_top = -26.0
|
2022-03-17 22:01:16 +00:00
|
|
|
margin_right = -8.0
|
2023-03-16 23:20:17 +00:00
|
|
|
margin_bottom = -2.0
|
2022-02-05 23:49:54 +00:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
placeholder_text = "Insert name"
|
|
|
|
|
2022-03-18 02:21:38 +00:00
|
|
|
[node name="DeleteConfirmation" type="ConfirmationDialog" parent="."]
|
2022-12-07 13:43:49 +00:00
|
|
|
margin_left = 8.0
|
|
|
|
margin_top = 8.0
|
2023-03-16 23:20:17 +00:00
|
|
|
margin_right = 305.0
|
|
|
|
margin_bottom = 68.2
|
2022-12-07 13:43:49 +00:00
|
|
|
rect_min_size = Vector2( 172, 60.2 )
|
2022-03-18 02:21:38 +00:00
|
|
|
dialog_text = "Are you sure you want to delete this layout?"
|
|
|
|
|
2022-02-05 23:49:54 +00:00
|
|
|
[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"]
|
2022-03-17 22:01:16 +00:00
|
|
|
[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"]
|
2022-03-18 02:21:38 +00:00
|
|
|
[connection signal="confirmed" from="DeleteConfirmation" to="." method="_on_DeleteConfirmation_confirmed"]
|