virtual_joystick_scene.tscn 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. [gd_scene load_steps=4 format=3 uid="uid://dmr0fcamx7t56"]
  2. [ext_resource type="Script" uid="uid://d1cdcunnnerly" path="res://addons/virtual_joystick/virtual_joystick.gd" id="1"]
  3. [ext_resource type="Texture2D" uid="uid://bpupbkaelw2y7" path="res://addons/virtual_joystick/textures/joystick_base_outline.png" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://da2c363pfkygc" path="res://addons/virtual_joystick/textures/joystick_tip_arrows.png" id="3"]
  5. [node name="Virtual Joystick" type="Control"]
  6. layout_mode = 3
  7. anchors_preset = 2
  8. anchor_top = 1.0
  9. anchor_bottom = 1.0
  10. offset_top = -308.0
  11. offset_right = 300.0
  12. offset_bottom = -8.0
  13. grow_vertical = 0
  14. script = ExtResource("1")
  15. [node name="Base" type="TextureRect" parent="."]
  16. layout_mode = 1
  17. anchors_preset = 8
  18. anchor_left = 0.5
  19. anchor_top = 0.5
  20. anchor_right = 0.5
  21. anchor_bottom = 0.5
  22. offset_left = -100.0
  23. offset_top = -100.0
  24. offset_right = 100.0
  25. offset_bottom = 100.0
  26. grow_horizontal = 2
  27. grow_vertical = 2
  28. pivot_offset = Vector2(100, 100)
  29. mouse_force_pass_scroll_events = false
  30. texture = ExtResource("2")
  31. stretch_mode = 5
  32. [node name="Tip" type="TextureRect" parent="Base"]
  33. layout_mode = 1
  34. anchors_preset = 8
  35. anchor_left = 0.5
  36. anchor_top = 0.5
  37. anchor_right = 0.5
  38. anchor_bottom = 0.5
  39. offset_left = -50.0
  40. offset_top = -50.0
  41. offset_right = 50.0
  42. offset_bottom = 50.0
  43. grow_horizontal = 2
  44. grow_vertical = 2
  45. pivot_offset = Vector2(50, 50)
  46. texture = ExtResource("3")
  47. stretch_mode = 5