midori-school/levels/ui/touchcontrols.tscn

78 lines
3.2 KiB
Text
Raw Normal View History

2025-01-19 18:59:16 +01:00
[gd_scene load_steps=12 format=2]
2024-12-02 02:07:54 +01:00
[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]
2024-12-02 02:45:44 +01:00
[ext_resource path="res://sprites/buttons/Select.png" type="Texture" id=10]
[ext_resource path="res://sprites/buttons/Start.png" type="Texture" id=11]
2024-12-02 02:07:54 +01:00
[node name="Touchcontrols" type="Node2D"]
script = ExtResource( 1 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
2025-01-19 18:59:16 +01:00
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
margin_left = 40.0
margin_top = 460.0
margin_right = 240.0
margin_bottom = 660.0
2024-12-02 02:07:54 +01:00
[node name="B" type="TouchScreenButton" parent="CanvasLayer"]
position = Vector2( 1142, 586 )
normal = ExtResource( 2 )
[node name="A" type="TouchScreenButton" parent="CanvasLayer"]
position = Vector2( 1007, 586 )
normal = ExtResource( 3 )
[node name="Y" type="TouchScreenButton" parent="CanvasLayer"]
position = Vector2( 1142, 479 )
normal = ExtResource( 4 )
[node name="X" type="TouchScreenButton" parent="CanvasLayer"]
position = Vector2( 1007, 479 )
normal = ExtResource( 7 )
[node name="R1" type="TouchScreenButton" parent="CanvasLayer"]
2024-12-07 21:00:53 +01:00
position = Vector2( 872, 610 )
2024-12-02 02:07:54 +01:00
normal = ExtResource( 8 )
[node name="R2" type="TouchScreenButton" parent="CanvasLayer"]
2024-12-07 21:00:53 +01:00
position = Vector2( 917, 479 )
2024-12-02 02:07:54 +01:00
normal = ExtResource( 9 )
[node name="L1" type="TouchScreenButton" parent="CanvasLayer"]
2024-12-07 21:00:53 +01:00
position = Vector2( 740, 610 )
2024-12-02 02:07:54 +01:00
normal = ExtResource( 6 )
[node name="L2" type="TouchScreenButton" parent="CanvasLayer"]
2024-12-07 21:00:53 +01:00
position = Vector2( 787, 479 )
2024-12-02 02:07:54 +01:00
normal = ExtResource( 5 )
2024-12-02 02:45:44 +01:00
[node name="Select" type="TouchScreenButton" parent="CanvasLayer"]
position = Vector2( 431, 526 )
normal = ExtResource( 10 )
[node name="Start" type="TouchScreenButton" parent="CanvasLayer"]
2024-12-07 21:00:53 +01:00
position = Vector2( 639, 526 )
2024-12-02 02:45:44 +01:00
normal = ExtResource( 11 )
2024-12-02 20:49:07 +01:00
[connection signal="pressed" from="CanvasLayer/B" to="." method="_on_B_pressed"]
[connection signal="released" from="CanvasLayer/B" to="." method="_on_B_released"]
2024-12-02 02:07:54 +01:00
[connection signal="pressed" from="CanvasLayer/A" to="." method="_on_A_pressed"]
[connection signal="released" from="CanvasLayer/A" to="." method="_on_A_released"]
2024-12-07 21:00:53 +01:00
[connection signal="pressed" from="CanvasLayer/Y" to="." method="_on_Y_pressed"]
[connection signal="released" from="CanvasLayer/Y" to="." method="_on_Y_released"]
2024-12-02 20:49:07 +01:00
[connection signal="pressed" from="CanvasLayer/R1" to="." method="_on_R1_pressed"]
[connection signal="released" from="CanvasLayer/R1" to="." method="_on_R1_released"]
[connection signal="pressed" from="CanvasLayer/R2" to="." method="_on_R2_pressed"]
[connection signal="released" from="CanvasLayer/R2" to="." method="_on_R2_released"]
2024-12-02 02:45:44 +01:00
[connection signal="pressed" from="CanvasLayer/Select" to="." method="_on_Select_pressed"]
[connection signal="released" from="CanvasLayer/Select" to="." method="_on_Select_released"]