1
- [gd_scene load_steps =3 format =3 uid ="uid://d08ymwie64x78" ]
1
+ [gd_scene load_steps =5 format =3 uid ="uid://d08ymwie64x78" ]
2
2
3
- [ext_resource type ="PackedScene" uid ="uid://drsuhng36km7e" path ="res://scenes/variable_helper.tscn" id ="1_lo3s5" ]
4
- [ext_resource type ="PackedScene" uid ="uid://cnphuecmmonpo" path ="res://scenes/gdscript_to_cpp.tscn" id ="2_stox0" ]
3
+ [ext_resource type ="LabelSettings" uid ="uid://bfq2fubl1lynw" path ="res://header_label.tres" id ="1_71wp5" ]
4
+ [ext_resource type ="Script" path ="res://scenes/gui.gd" id ="1_qmrq7" ]
5
+ [ext_resource type ="Script" path ="res://scripts/variable_helper.gd" id ="2_gl05c" ]
6
+ [ext_resource type ="Script" path ="res://scripts/gdscript_to_cpp.gd" id ="3_7u2ky" ]
5
7
6
8
[node name ="Control" type ="Control" ]
7
9
layout_mode = 3
@@ -10,18 +12,151 @@ anchor_right = 1.0
10
12
anchor_bottom = 1.0
11
13
grow_horizontal = 2
12
14
grow_vertical = 2
15
+ script = ExtResource ("1_qmrq7" )
13
16
14
- [node name ="TabContainer " type ="TabContainer " parent ="." ]
17
+ [node name ="VBoxContainer " type ="VBoxContainer " parent ="." ]
15
18
layout_mode = 1
16
19
anchors_preset = 15
17
20
anchor_right = 1.0
18
21
anchor_bottom = 1.0
19
22
grow_horizontal = 2
20
23
grow_vertical = 2
21
24
22
- [node name ="Variable Helper" parent = "TabContainer" instance = ExtResource ( "1_lo3s5" ) ]
25
+ [node name ="Main" type = "HBoxContainer" parent = "VBoxContainer" ]
23
26
layout_mode = 2
27
+ size_flags_vertical = 3
24
28
25
- [node name ="GDScript2C++" parent ="TabContainer" instance =ExtResource ("2_stox0" )]
29
+ [node name ="GDScriptColumn" type ="VBoxContainer" parent ="VBoxContainer/Main" ]
30
+ layout_mode = 2
31
+ size_flags_horizontal = 3
32
+
33
+ [node name ="Label" type ="Label" parent ="VBoxContainer/Main/GDScriptColumn" ]
34
+ layout_mode = 2
35
+ text = "GDScript"
36
+ label_settings = ExtResource ("1_71wp5" )
37
+ horizontal_alignment = 1
38
+
39
+ [node name ="TabContainer" type ="TabContainer" parent ="VBoxContainer/Main/GDScriptColumn" ]
40
+ layout_mode = 2
41
+ size_flags_vertical = 3
42
+ tab_alignment = 1
43
+ current_tab = 1
44
+
45
+ [node name ="Variable Helper" type ="VBoxContainer" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer" ]
46
+ visible = false
47
+ layout_mode = 2
48
+ script = ExtResource ("2_gl05c" )
49
+ metadata/_tab_index = 0
50
+
51
+ [node name ="class" type ="LineEdit" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" ]
52
+ layout_mode = 2
53
+ placeholder_text = "Your class' name here"
54
+
55
+ [node name ="def_var" type ="LineEdit" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" ]
56
+ layout_mode = 2
57
+ placeholder_text = "Your default variable type here"
58
+
59
+ [node name ="values" type ="TextEdit" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" ]
60
+ layout_mode = 2
61
+ size_flags_horizontal = 3
62
+ size_flags_vertical = 3
63
+ placeholder_text = "List your values by seperating them with commas. Variables may be typed individually by using GDScript's static type syntax. Otherwise, they will use whichever type is default."
64
+ wrap_mode = 1
65
+
66
+ [node name ="GDScript To C++" type ="VBoxContainer" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer" ]
67
+ layout_mode = 2
68
+ script = ExtResource ("3_7u2ky" )
69
+ metadata/_tab_index = 1
70
+
71
+ [node name ="GDScriptInput" type ="Button" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer/GDScript To C++" ]
72
+ layout_mode = 2
73
+ size_flags_vertical = 8
74
+ text = "Pick GDScript file"
75
+
76
+ [node name ="ScriptCode" type ="CodeEdit" parent ="VBoxContainer/Main/GDScriptColumn/TabContainer/GDScript To C++" ]
77
+ layout_mode = 2
78
+ size_flags_vertical = 3
79
+ placeholder_text = "Your GDScript script will appear here when loaded from a file. Or, you can copy your code and paste it into here."
80
+ wrap_mode = 1
81
+
82
+ [node name ="C++Column" type ="VBoxContainer" parent ="VBoxContainer/Main" ]
83
+ layout_mode = 2
84
+ size_flags_horizontal = 3
85
+
86
+ [node name ="Label" type ="Label" parent ="VBoxContainer/Main/C++Column" ]
87
+ layout_mode = 2
88
+ text = "C++"
89
+ label_settings = ExtResource ("1_71wp5" )
90
+ horizontal_alignment = 1
91
+
92
+ [node name ="C++Tabs" type ="TabContainer" parent ="VBoxContainer/Main/C++Column" ]
93
+ layout_mode = 2
94
+ size_flags_vertical = 3
95
+ tab_alignment = 1
96
+ current_tab = 0
97
+ deselect_enabled = true
98
+
99
+ [node name ="Header" type ="CodeEdit" parent ="VBoxContainer/Main/C++Column/C++Tabs" ]
100
+ layout_mode = 2
101
+ placeholder_text = "Header declarations for your class will show up here. You can manually edit code as needed before pressing \" output\" . "
102
+ wrap_mode = 1
103
+ metadata/_tab_index = 0
104
+
105
+ [node name ="Code" type ="CodeEdit" parent ="VBoxContainer/Main/C++Column/C++Tabs" ]
106
+ visible = false
107
+ layout_mode = 2
108
+ placeholder_text = "Source code for all your class' functions will show up here. You can manually edit code as needed before pressing \" output\" . "
109
+ wrap_mode = 1
110
+ metadata/_tab_index = 1
111
+
112
+ [node name ="ClassDB Binding" type ="CodeEdit" parent ="VBoxContainer/Main/C++Column/C++Tabs" ]
113
+ visible = false
114
+ layout_mode = 2
115
+ placeholder_text = "The function for binding variables to the ClassDB API will show up here. You can manually edit code as needed before pressing \" output\" . "
116
+ wrap_mode = 1
117
+ metadata/_tab_index = 2
118
+
119
+ [node name ="Set-Gets" type ="CodeEdit" parent ="VBoxContainer/Main/C++Column/C++Tabs" ]
26
120
visible = false
27
121
layout_mode = 2
122
+ placeholder_text = "Setter and getter functions for API-exposed variables will show up here. You can manually edit code as needed before pressing \" output\" . "
123
+ wrap_mode = 1
124
+ metadata/_tab_index = 3
125
+
126
+ [node name ="CommonButtons" type ="HBoxContainer" parent ="VBoxContainer" ]
127
+ layout_mode = 2
128
+
129
+ [node name ="OpenSettings" type ="Button" parent ="VBoxContainer/CommonButtons" ]
130
+ layout_mode = 2
131
+ size_flags_horizontal = 3
132
+ text = "Open Settings"
133
+
134
+ [node name ="LoadInput" type ="Button" parent ="VBoxContainer/CommonButtons" ]
135
+ layout_mode = 2
136
+ size_flags_horizontal = 3
137
+ text = "Load File"
138
+
139
+ [node name ="ProcessInput" type ="Button" parent ="VBoxContainer/CommonButtons" ]
140
+ layout_mode = 2
141
+ size_flags_horizontal = 3
142
+ text = "Process Input"
143
+
144
+ [node name ="SaveOutput" type ="Button" parent ="VBoxContainer/CommonButtons" ]
145
+ layout_mode = 2
146
+ size_flags_horizontal = 3
147
+ text = "Save C++ Files"
148
+
149
+ [node name ="OpenOutput" type ="Button" parent ="VBoxContainer/CommonButtons" ]
150
+ layout_mode = 2
151
+ size_flags_horizontal = 3
152
+ text = "Open Output Folder"
153
+
154
+ [connection signal ="visibility_changed" from ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" to ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" method ="_on_visibility_changed" ]
155
+ [connection signal ="text_changed" from ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper/class" to ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" method ="_on_class_text_changed" ]
156
+ [connection signal ="text_changed" from ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper/def_var" to ="VBoxContainer/Main/GDScriptColumn/TabContainer/Variable Helper" method ="_on_def_var_text_changed" ]
157
+ [connection signal ="pressed" from ="VBoxContainer/Main/GDScriptColumn/TabContainer/GDScript To C++/GDScriptInput" to ="VBoxContainer/Main/GDScriptColumn/TabContainer/GDScript To C++" method ="_on_input_pressed" ]
158
+ [connection signal ="pressed" from ="VBoxContainer/CommonButtons/OpenSettings" to ="." method ="_on_open_settings_pressed" ]
159
+ [connection signal ="pressed" from ="VBoxContainer/CommonButtons/LoadInput" to ="." method ="_on_load_input_pressed" ]
160
+ [connection signal ="pressed" from ="VBoxContainer/CommonButtons/ProcessInput" to ="." method ="_on_process_input_pressed" ]
161
+ [connection signal ="pressed" from ="VBoxContainer/CommonButtons/SaveOutput" to ="." method ="_on_save_output_pressed" ]
162
+ [connection signal ="pressed" from ="VBoxContainer/CommonButtons/OpenOutput" to ="." method ="_on_open_output_pressed" ]
0 commit comments