plane_prompts.tscn 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. [gd_scene load_steps=18 format=3 uid="uid://rixhldyytdiy"]
  2. [ext_resource type="Script" path="res://component/ui/input_prompts/prompt_container.gd" id="1_eppoy"]
  3. [ext_resource type="Texture2D" uid="uid://b1e23gj3k1klg" path="res://addons/input_prompts/icons/xbox/a.png" id="2_bfgq1"]
  4. [ext_resource type="Script" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="2_h1sqq"]
  5. [ext_resource type="Texture2D" uid="uid://cah6r1q5x2lte" path="res://addons/input_prompts/icons/generic/left_stick_left.png" id="4_8s3s4"]
  6. [ext_resource type="Texture2D" uid="uid://c03r3n0nfrjck" path="res://addons/input_prompts/icons/generic/left_stick_right.png" id="5_5ns3s"]
  7. [ext_resource type="Texture2D" uid="uid://dreirjfpqj40a" path="res://addons/input_prompts/icons/generic/left_stick_down.png" id="6_712bd"]
  8. [ext_resource type="Texture2D" uid="uid://bntsrcd3hjcex" path="res://addons/input_prompts/icons/generic/left_stick_up.png" id="7_awcyd"]
  9. [sub_resource type="InputEventKey" id="InputEventKey_jm5e5"]
  10. device = -1
  11. physical_keycode = 32
  12. unicode = 32
  13. [sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_wj4uo"]
  14. device = -1
  15. [sub_resource type="InputEventKey" id="InputEventKey_q4jus"]
  16. device = -1
  17. physical_keycode = 65
  18. unicode = 97
  19. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_oji7s"]
  20. device = -1
  21. axis_value = -1.0
  22. [sub_resource type="InputEventKey" id="InputEventKey_fi2er"]
  23. device = -1
  24. physical_keycode = 68
  25. unicode = 101
  26. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_j1j4m"]
  27. device = -1
  28. axis_value = 1.0
  29. [sub_resource type="InputEventKey" id="InputEventKey_35cri"]
  30. device = -1
  31. physical_keycode = 83
  32. unicode = 111
  33. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_ekkas"]
  34. device = -1
  35. axis = 1
  36. axis_value = 1.0
  37. [sub_resource type="InputEventKey" id="InputEventKey_knka0"]
  38. device = -1
  39. physical_keycode = 87
  40. unicode = 44
  41. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_7mrea"]
  42. device = -1
  43. axis = 1
  44. axis_value = -1.0
  45. [node name="PlanePrompts" type="VBoxContainer"]
  46. offset_left = 193.0
  47. offset_right = 193.0
  48. offset_bottom = 100.0
  49. script = ExtResource("1_eppoy")
  50. [node name="PromptsTitle" type="Label" parent="."]
  51. layout_mode = 2
  52. theme_override_font_sizes/font_size = 44
  53. text = "Driving a plane!"
  54. horizontal_alignment = 1
  55. [node name="AcceleratePrompt" type="HBoxContainer" parent="."]
  56. layout_mode = 2
  57. script = ExtResource("1_eppoy")
  58. [node name="AccelerateLabel" type="Label" parent="AcceleratePrompt"]
  59. layout_mode = 2
  60. theme_override_font_sizes/font_size = 34
  61. text = "Accelerate"
  62. [node name="AccelerateMaxActionPrompt" type="TextureRect" parent="AcceleratePrompt"]
  63. custom_minimum_size = Vector2(100, 100)
  64. layout_mode = 2
  65. texture = ExtResource("2_bfgq1")
  66. stretch_mode = 5
  67. script = ExtResource("2_h1sqq")
  68. action = "main"
  69. icon = 0
  70. events = Array[InputEvent]([SubResource("InputEventKey_jm5e5"), SubResource("InputEventJoypadButton_wj4uo")])
  71. [node name="RollPrompt" type="HBoxContainer" parent="."]
  72. layout_mode = 2
  73. script = ExtResource("1_eppoy")
  74. [node name="RollLabel" type="Label" parent="RollPrompt"]
  75. layout_mode = 2
  76. theme_override_font_sizes/font_size = 34
  77. text = "Roll"
  78. [node name="RollLeftActionPrompt" type="TextureRect" parent="RollPrompt"]
  79. custom_minimum_size = Vector2(100, 100)
  80. layout_mode = 2
  81. texture = ExtResource("4_8s3s4")
  82. stretch_mode = 5
  83. script = ExtResource("2_h1sqq")
  84. action = "move_left"
  85. icon = 0
  86. events = Array[InputEvent]([SubResource("InputEventKey_q4jus"), SubResource("InputEventJoypadMotion_oji7s")])
  87. [node name="RollRightActionPrompt" type="TextureRect" parent="RollPrompt"]
  88. custom_minimum_size = Vector2(100, 100)
  89. layout_mode = 2
  90. texture = ExtResource("5_5ns3s")
  91. stretch_mode = 5
  92. script = ExtResource("2_h1sqq")
  93. action = "move_right"
  94. icon = 0
  95. events = Array[InputEvent]([SubResource("InputEventKey_fi2er"), SubResource("InputEventJoypadMotion_j1j4m")])
  96. [node name="PitchPrompt" type="HBoxContainer" parent="."]
  97. layout_mode = 2
  98. script = ExtResource("1_eppoy")
  99. [node name="PitchLabel" type="Label" parent="PitchPrompt"]
  100. layout_mode = 2
  101. theme_override_font_sizes/font_size = 34
  102. text = "Pitch"
  103. [node name="PitchUpActionPrompt" type="TextureRect" parent="PitchPrompt"]
  104. custom_minimum_size = Vector2(100, 100)
  105. layout_mode = 2
  106. texture = ExtResource("6_712bd")
  107. stretch_mode = 5
  108. script = ExtResource("2_h1sqq")
  109. action = "move_back"
  110. icon = 0
  111. events = Array[InputEvent]([SubResource("InputEventKey_35cri"), SubResource("InputEventJoypadMotion_ekkas")])
  112. [node name="PitchDownActionPrompt" type="TextureRect" parent="PitchPrompt"]
  113. custom_minimum_size = Vector2(100, 100)
  114. layout_mode = 2
  115. texture = ExtResource("7_awcyd")
  116. stretch_mode = 5
  117. script = ExtResource("2_h1sqq")
  118. action = "move_forward"
  119. icon = 0
  120. events = Array[InputEvent]([SubResource("InputEventKey_knka0"), SubResource("InputEventJoypadMotion_7mrea")])