This commit is contained in:
WS-3917 2025-05-03 22:31:42 +08:00
parent ee29207d71
commit e4a2b0fa9d

View File

@ -1,35 +0,0 @@
[gd_scene load_steps=3 format=3 uid="uid://joystick"]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Mobile/JoystickBase.png" id=1]
[ext_resource type="Texture2D" path="res://Sprites/Menus/Mobile/JoystickHandle.png" id=2]
[node name="Joystick" type="Control" script="res://Scripts/UI/Joystick.cs"]
anchor_right = 0
anchor_bottom = 0
offset_right = 200
offset_bottom = 200
mouse_filter = 2 # Ignore mouse input
[node name="BaseCircle" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100
offset_top = -100
offset_right = 100
offset_bottom = 100
texture = ExtResource(1)
stretch_mode = 6 # Keep aspect centered
[node name="HandleCircle" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -40
offset_top = -40
offset_right = 40
offset_bottom = 40
texture = ExtResource(2)
stretch_mode = 6 # Keep aspect centered