52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dmr0fcamx7t56"]
|
|
|
|
[ext_resource type="Script" uid="uid://b2ah83r2yy674" path="res://joystick/virtual_joystick.gd" id="1_8x4dy"]
|
|
[ext_resource type="Texture2D" uid="uid://bm30au8mjfc2f" path="res://joystick/textures/joystick_base_outline.png" id="2_jhjs2"]
|
|
[ext_resource type="Texture2D" uid="uid://dt13r06u87fib" path="res://joystick/textures/joystick_tip_arrows.png" id="3_3etdg"]
|
|
|
|
[node name="Virtual Joystick" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = -308.0
|
|
offset_right = 300.0
|
|
offset_bottom = -8.0
|
|
grow_vertical = 0
|
|
script = ExtResource("1_8x4dy")
|
|
|
|
[node name="Base" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.0
|
|
offset_top = -100.0
|
|
offset_right = 100.0
|
|
offset_bottom = 100.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset = Vector2(100, 100)
|
|
mouse_force_pass_scroll_events = false
|
|
texture = ExtResource("2_jhjs2")
|
|
stretch_mode = 5
|
|
|
|
[node name="Tip" type="TextureRect" parent="Base"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -50.0
|
|
offset_top = -50.0
|
|
offset_right = 50.0
|
|
offset_bottom = 50.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset = Vector2(50, 50)
|
|
texture = ExtResource("3_3etdg")
|
|
stretch_mode = 5
|