92 lines
3.5 KiB
Text
92 lines
3.5 KiB
Text
|
[gd_scene load_steps=12 format=2]
|
||
|
|
||
|
[ext_resource path="res://levels/ui/touchcontrols.gd" type="Script" id=1]
|
||
|
[ext_resource path="res://sprites/buttons/B.png" type="Texture" id=2]
|
||
|
[ext_resource path="res://sprites/buttons/A.png" type="Texture" id=3]
|
||
|
[ext_resource path="res://sprites/buttons/Y.png" type="Texture" id=4]
|
||
|
[ext_resource path="res://sprites/buttons/LT.png" type="Texture" id=5]
|
||
|
[ext_resource path="res://sprites/buttons/LB.png" type="Texture" id=6]
|
||
|
[ext_resource path="res://sprites/buttons/X.png" type="Texture" id=7]
|
||
|
[ext_resource path="res://sprites/buttons/RB.png" type="Texture" id=8]
|
||
|
[ext_resource path="res://sprites/buttons/RT.png" type="Texture" id=9]
|
||
|
|
||
|
[sub_resource type="Gradient" id=3]
|
||
|
offsets = PoolRealArray( 0.583333, 1 )
|
||
|
colors = PoolColorArray( 1, 1, 1, 1, 1, 1, 1, 1 )
|
||
|
|
||
|
[sub_resource type="GradientTexture" id=4]
|
||
|
gradient = SubResource( 3 )
|
||
|
width = 32
|
||
|
|
||
|
[node name="Touchcontrols" type="Node2D"]
|
||
|
script = ExtResource( 1 )
|
||
|
|
||
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||
|
|
||
|
[node name="B" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 1142, 586 )
|
||
|
scale = Vector2( 1.5, 1.5 )
|
||
|
normal = ExtResource( 2 )
|
||
|
|
||
|
[node name="A" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 1007, 586 )
|
||
|
scale = Vector2( 1.5, 1.5 )
|
||
|
normal = ExtResource( 3 )
|
||
|
|
||
|
[node name="Y" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 1142, 479 )
|
||
|
scale = Vector2( 1.5, 1.5 )
|
||
|
normal = ExtResource( 4 )
|
||
|
|
||
|
[node name="X" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 1007, 479 )
|
||
|
scale = Vector2( 1.5, 1.5 )
|
||
|
normal = ExtResource( 7 )
|
||
|
|
||
|
[node name="R1" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 872, 501 )
|
||
|
normal = ExtResource( 8 )
|
||
|
|
||
|
[node name="R2" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 917, 573 )
|
||
|
normal = ExtResource( 9 )
|
||
|
|
||
|
[node name="L1" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 20, 372 )
|
||
|
normal = ExtResource( 6 )
|
||
|
|
||
|
[node name="L2" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 155, 372 )
|
||
|
normal = ExtResource( 5 )
|
||
|
|
||
|
[node name="Up" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 139, 475 )
|
||
|
scale = Vector2( 2, 55 )
|
||
|
normal = SubResource( 4 )
|
||
|
|
||
|
[node name="Down" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 139, 585 )
|
||
|
scale = Vector2( 2, 55 )
|
||
|
normal = SubResource( 4 )
|
||
|
|
||
|
[node name="Left" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 75, 530 )
|
||
|
scale = Vector2( 2, 54.9999 )
|
||
|
normal = SubResource( 4 )
|
||
|
|
||
|
[node name="Right" type="TouchScreenButton" parent="CanvasLayer"]
|
||
|
position = Vector2( 203, 530 )
|
||
|
scale = Vector2( 2, 54.9999 )
|
||
|
normal = SubResource( 4 )
|
||
|
|
||
|
[connection signal="pressed" from="CanvasLayer/A" to="." method="_on_A_pressed"]
|
||
|
[connection signal="released" from="CanvasLayer/A" to="." method="_on_A_released"]
|
||
|
[connection signal="pressed" from="CanvasLayer/Up" to="." method="_on_Up_pressed"]
|
||
|
[connection signal="released" from="CanvasLayer/Up" to="." method="_on_Up_released"]
|
||
|
[connection signal="pressed" from="CanvasLayer/Down" to="." method="_on_Down_pressed"]
|
||
|
[connection signal="released" from="CanvasLayer/Down" to="." method="_on_Down_released"]
|
||
|
[connection signal="pressed" from="CanvasLayer/Left" to="." method="_on_Left_pressed"]
|
||
|
[connection signal="released" from="CanvasLayer/Left" to="." method="_on_Left_released"]
|
||
|
[connection signal="pressed" from="CanvasLayer/Right" to="." method="_on_Right_pressed"]
|
||
|
[connection signal="released" from="CanvasLayer/Right" to="." method="_on_Right_released"]
|