1- [gd_scene load_steps =15 format =2 ]
1+ [gd_scene load_steps =14 format =2 ]
22
33[ext_resource path ="res://src/autoload/touch_screen.gd" type ="Script" id =1 ]
44[ext_resource path ="res://media/image/circle.png" type ="Texture" id =2 ]
55[ext_resource path ="res://src/menu/round_button.gd" type ="Script" id =3 ]
66[ext_resource path ="res://src/menu/button_modulate.gd" type ="Script" id =4 ]
77[ext_resource path ="res://media/font/NicoPaint-Regular.ttf" type ="DynamicFontData" id =5 ]
8- [ext_resource path ="res://src/circle.gd" type ="Script" id =8 ]
98
109[sub_resource type ="CircleShape2D" id =3 ]
1110radius = 15.0
@@ -175,28 +174,18 @@ margin_top = -6.0
175174margin_right = 5.0
176175margin_bottom = 6.0
177176
178- [node name ="Joystick " type ="Control" parent ="Control" ]
177+ [node name ="DPad " type ="Control" parent ="Control" ]
179178margin_left = 26.0
180179margin_top = 98.0
181180margin_right = 26.0
182181margin_bottom = 98.0
183182rect_pivot_offset = Vector2 ( -84 , -71 )
184183
185- [node name ="Base" type ="Control" parent ="Control/Joystick" ]
186- visible = false
187- grow_horizontal = 2
188- grow_vertical = 2
189- size_flags_horizontal = 4
190- size_flags_vertical = 4
191- script = ExtResource ( 8 )
192- radius = 20.0
193- points = 16
194-
195- [node name ="Buttons" type ="Control" parent ="Control/Joystick" ]
184+ [node name ="Buttons" type ="Control" parent ="Control/DPad" ]
196185margin_right = 40.0
197186margin_bottom = 40.0
198187
199- [node name ="0" type ="TouchScreenButton" parent ="Control/Joystick /Buttons" ]
188+ [node name ="0" type ="TouchScreenButton" parent ="Control/DPad /Buttons" ]
200189shape = SubResource ( 7 )
201190shape_centered = false
202191action = "ui_right"
@@ -205,15 +194,15 @@ poly_path = NodePath("Polygon2D")
205194inner_radius = 18.0
206195inner_offset = 2.0
207196
208- [node name ="Polygon2D" type ="Polygon2D" parent ="Control/Joystick /Buttons/0" ]
197+ [node name ="Polygon2D" type ="Polygon2D" parent ="Control/DPad /Buttons/0" ]
209198modulate = Color ( 1 , 1 , 1 , 0.3 )
210199position = Vector2 ( 2 , 0 )
211200polygon = PoolVector2Array ( 2.12132 , 2.12132 , 3 , 0 , 2.12132 , -2.12132 , 12.7279 , -12.7279 , 16.6298 , -6.8883 , 18 , 0 , 16.6298 , 6.8883 , 12.7279 , 12.7279 )
212201script = ExtResource ( 4 )
213202button_path = NodePath (".." )
214203idle_color = Color ( 1 , 1 , 1 , 0.501961 )
215204
216- [node name ="1" type ="TouchScreenButton" parent ="Control/Joystick /Buttons" ]
205+ [node name ="1" type ="TouchScreenButton" parent ="Control/DPad /Buttons" ]
217206shape = SubResource ( 8 )
218207shape_centered = false
219208action = "ui_down"
@@ -223,14 +212,14 @@ poly_path = NodePath("Polygon2D")
223212inner_radius = 18.0
224213inner_offset = 2.0
225214
226- [node name ="Polygon2D" type ="Polygon2D" parent ="Control/Joystick /Buttons/1" ]
215+ [node name ="Polygon2D" type ="Polygon2D" parent ="Control/DPad /Buttons/1" ]
227216modulate = Color ( 1 , 1 , 1 , 0.3 )
228217position = Vector2 ( -8 .74228e-08, 2 )
229218polygon = PoolVector2Array ( -2.12132 , 2.12132 , -1 .31134e-07, 3 , 2.12132 , 2.12132 , 12.7279 , 12.7279 , 6.8883 , 16.6298 , -7 .86805e-07, 18 , -6.8883 , 16.6298 , -12.7279 , 12.7279 )
230219script = ExtResource ( 4 )
231220button_path = NodePath (".." )
232221
233- [node name ="2" type ="TouchScreenButton" parent ="Control/Joystick /Buttons" ]
222+ [node name ="2" type ="TouchScreenButton" parent ="Control/DPad /Buttons" ]
234223shape = SubResource ( 9 )
235224shape_centered = false
236225action = "ui_left"
@@ -240,14 +229,14 @@ poly_path = NodePath("Polygon2D")
240229inner_radius = 18.0
241230inner_offset = 2.0
242231
243- [node name ="Polygon2D" type ="Polygon2D" parent ="Control/Joystick /Buttons/2" ]
232+ [node name ="Polygon2D" type ="Polygon2D" parent ="Control/DPad /Buttons/2" ]
244233modulate = Color ( 1 , 1 , 1 , 0.3 )
245234position = Vector2 ( -2 , -1 .74846e-07 )
246235polygon = PoolVector2Array ( -2.12132 , -2.12132 , -3 , -2 .62268e-07, -2.12132 , 2.12132 , -12.7279 , 12.7279 , -16.6298 , 6.8883 , -18 , -1 .57361e-06, -16.6298 , -6.8883 , -12.7279 , -12.7279 )
247236script = ExtResource ( 4 )
248237button_path = NodePath (".." )
249238
250- [node name ="3" type ="TouchScreenButton" parent ="Control/Joystick /Buttons" ]
239+ [node name ="3" type ="TouchScreenButton" parent ="Control/DPad /Buttons" ]
251240shape = SubResource ( 10 )
252241shape_centered = false
253242action = "ui_up"
@@ -257,7 +246,7 @@ poly_path = NodePath("Polygon2D")
257246inner_radius = 18.0
258247inner_offset = 2.0
259248
260- [node name ="Polygon2D" type ="Polygon2D" parent ="Control/Joystick /Buttons/3" ]
249+ [node name ="Polygon2D" type ="Polygon2D" parent ="Control/DPad /Buttons/3" ]
261250modulate = Color ( 1 , 1 , 1 , 0.3 )
262251position = Vector2 ( 2 .38498e-08, -2 )
263252polygon = PoolVector2Array ( 2.12132 , -2.12132 , 3 .57746e-08, -3 , -2.12132 , -2.12132 , -12.7279 , -12.7279 , -6.8883 , -16.6298 , 2 .14648e-07, -18 , 6.8883 , -16.6298 , 12.7279 , -12.7279 )
0 commit comments