1
- [gd_scene load_steps =10 format =3 uid ="uid://cedqo06n6en8u" ]
1
+ [gd_scene load_steps =11 format =3 uid ="uid://cedqo06n6en8u" ]
2
2
3
3
[ext_resource type ="StyleBox" uid ="uid://daxhx5qr5qdeu" path ="res://assets/styles/SolidPanel.tres" id ="1_es5ky" ]
4
4
[ext_resource type ="Script" uid ="uid://byqpqgm3d03aq" path ="res://panels/Functions/Functions.gd" id ="2_bfwkh" ]
5
5
[ext_resource type ="PackedScene" uid ="uid://dr0kfolsg46yu" path ="res://components/PanelMenuBar.tscn" id ="3_rou2v" ]
6
6
[ext_resource type ="PackedScene" uid ="uid://c4vlxpk3ywg42" path ="res://components/ComponentList/ComponentList.tscn" id ="4_bosbs" ]
7
+ [ext_resource type ="Texture2D" uid ="uid://cuvwwbojtcpg6" path ="res://assets/icons/Duplicate.svg" id ="4_fsh4n" ]
7
8
[ext_resource type ="Texture2D" uid ="uid://bbennjke0ioen" path ="res://assets/icons/Add.svg" id ="5_7afv4" ]
8
9
[ext_resource type ="PackedScene" uid ="uid://nqgh8nmma3kj" path ="res://components/ComponentSettings/ComponentSettings.tscn" id ="5_re3nl" ]
9
10
[ext_resource type ="Texture2D" uid ="uid://dfrrs2dnvlvsu" path ="res://assets/icons/Delete.svg" id ="6_fsh4n" ]
@@ -17,7 +18,7 @@ unicode = 79
17
18
[sub_resource type ="Shortcut" id ="Shortcut_fsh4n" ]
18
19
events = [SubResource ("InputEventKey_7afv4" )]
19
20
20
- [node name ="Functions" type ="PanelContainer" node_paths =PackedStringArray ("_delete_button" , "_component_list" , "edit_controls" )]
21
+ [node name ="Functions" type ="PanelContainer" node_paths =PackedStringArray ("_delete_button" , "_duplicate_button" , " _component_list" , "edit_controls" )]
21
22
anchors_preset = 15
22
23
anchor_right = 1.0
23
24
anchor_bottom = 1.0
@@ -26,6 +27,7 @@ grow_vertical = 2
26
27
theme_override_styles/panel = ExtResource ("1_es5ky" )
27
28
script = ExtResource ("2_bfwkh" )
28
29
_delete_button = NodePath ("VBoxContainer/HBoxContainer/VBoxContainer/PanelContainer/HBoxContainer/Delete" )
30
+ _duplicate_button = NodePath ("VBoxContainer/PanelMenuBar/HBoxContainer/ScrollContainer/PanelContainer/HBoxContainer/Duplicate" )
29
31
_component_list = NodePath ("VBoxContainer/HBoxContainer/VBoxContainer/ComponentList" )
30
32
edit_controls = NodePath ("VBoxContainer/PanelMenuBar/HBoxContainer/EditControls" )
31
33
@@ -35,6 +37,18 @@ layout_mode = 2
35
37
[node name ="PanelMenuBar" parent ="VBoxContainer" instance =ExtResource ("3_rou2v" )]
36
38
layout_mode = 2
37
39
40
+ [node name ="PanelContainer" type ="PanelContainer" parent ="VBoxContainer/PanelMenuBar/HBoxContainer/ScrollContainer" index ="0" ]
41
+ layout_mode = 2
42
+ size_flags_vertical = 3
43
+
44
+ [node name ="HBoxContainer" type ="HBoxContainer" parent ="VBoxContainer/PanelMenuBar/HBoxContainer/ScrollContainer/PanelContainer" ]
45
+ layout_mode = 2
46
+
47
+ [node name ="Duplicate" type ="Button" parent ="VBoxContainer/PanelMenuBar/HBoxContainer/ScrollContainer/PanelContainer/HBoxContainer" ]
48
+ layout_mode = 2
49
+ disabled = true
50
+ icon = ExtResource ("4_fsh4n" )
51
+
38
52
[node name ="HBoxContainer" type ="HSplitContainer" parent ="VBoxContainer" ]
39
53
layout_mode = 2
40
54
size_flags_vertical = 3
@@ -76,6 +90,7 @@ icon = ExtResource("6_fsh4n")
76
90
layout_mode = 2
77
91
size_flags_horizontal = 3
78
92
93
+ [connection signal ="pressed" from ="VBoxContainer/PanelMenuBar/HBoxContainer/ScrollContainer/PanelContainer/HBoxContainer/Duplicate" to ="." method ="_on_duplicate_pressed" ]
79
94
[connection signal ="selected" from ="VBoxContainer/HBoxContainer/VBoxContainer/ComponentList" to ="." method ="_on_component_list_selected" ]
80
95
[connection signal ="selected" from ="VBoxContainer/HBoxContainer/VBoxContainer/ComponentList" to ="VBoxContainer/HBoxContainer/ComponentSettings" method ="set_component" ]
81
96
[connection signal ="pressed" from ="VBoxContainer/HBoxContainer/VBoxContainer/PanelContainer/HBoxContainer/Create" to ="." method ="_on_create_pressed" ]
0 commit comments