diff options
| author | tpart <tpart120@proton.me> | 2024-07-01 23:08:12 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2024-07-01 23:17:21 +0200 |
| commit | b51829c8b36881a3e378e589593bf8395acd1b3b (patch) | |
| tree | 4c341986ea8bee84bc39faf7355ee5a9b01f0b69 /client/player/onscreen_controls/virtual_joystick_scene.tscn | |
| parent | 15e5a356f9d27091dbd82d76978fd3fcf5d4d13d (diff) | |
| download | hurrycurry-b51829c8b36881a3e378e589593bf8395acd1b3b.tar hurrycurry-b51829c8b36881a3e378e589593bf8395acd1b3b.tar.bz2 hurrycurry-b51829c8b36881a3e378e589593bf8395acd1b3b.tar.zst | |
Add on-screen controls
Diffstat (limited to 'client/player/onscreen_controls/virtual_joystick_scene.tscn')
| -rw-r--r-- | client/player/onscreen_controls/virtual_joystick_scene.tscn | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/client/player/onscreen_controls/virtual_joystick_scene.tscn b/client/player/onscreen_controls/virtual_joystick_scene.tscn new file mode 100644 index 00000000..13323b1d --- /dev/null +++ b/client/player/onscreen_controls/virtual_joystick_scene.tscn @@ -0,0 +1,51 @@ +[gd_scene load_steps=4 format=3 uid="uid://dmr0fcamx7t56"] + +[ext_resource type="Script" path="res://player/onscreen_controls/virtual_joystick.gd" id="1_8x4dy"] +[ext_resource type="Texture2D" uid="uid://bm30au8mjfc2f" path="res://player/onscreen_controls/textures/joystick_base_outline.png" id="2_jhjs2"] +[ext_resource type="Texture2D" uid="uid://dt13r06u87fib" path="res://player/onscreen_controls/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 |