jeep_prompts.tscn 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. [gd_scene load_steps=22 format=3 uid="uid://sogwc56hcxlr"]
  2. [ext_resource type="Script" path="res://component/ui/input_prompts/prompt_container.gd" id="1_vo7iq"]
  3. [ext_resource type="Texture2D" uid="uid://b1e23gj3k1klg" path="res://addons/input_prompts/icons/xbox/a.png" id="2_xdg6b"]
  4. [ext_resource type="Script" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="3_ql8fw"]
  5. [ext_resource type="Texture2D" uid="uid://c6cv5phl3gvvn" path="res://addons/input_prompts/icons/xbox/right_trigger.png" id="4_akj72"]
  6. [ext_resource type="Texture2D" uid="uid://dx1u47qkx4in8" path="res://addons/input_prompts/icons/xbox/left_trigger.png" id="5_c14bx"]
  7. [ext_resource type="Texture2D" uid="uid://dv0r0pf7dwijj" path="res://addons/input_prompts/icons/xbox/b.png" id="6_04hns"]
  8. [ext_resource type="Texture2D" uid="uid://cah6r1q5x2lte" path="res://addons/input_prompts/icons/generic/left_stick_left.png" id="7_w11vb"]
  9. [ext_resource type="Texture2D" uid="uid://c03r3n0nfrjck" path="res://addons/input_prompts/icons/generic/left_stick_right.png" id="8_m6wya"]
  10. [sub_resource type="InputEventKey" id="InputEventKey_jm5e5"]
  11. device = -1
  12. physical_keycode = 32
  13. unicode = 32
  14. [sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_wj4uo"]
  15. device = -1
  16. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_8t453"]
  17. device = -1
  18. axis = 5
  19. axis_value = 1.0
  20. [sub_resource type="InputEventKey" id="InputEventKey_07cvw"]
  21. device = -1
  22. physical_keycode = 4194320
  23. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_pn7hm"]
  24. device = -1
  25. axis = 4
  26. axis_value = 1.0
  27. [sub_resource type="InputEventKey" id="InputEventKey_7j6ii"]
  28. device = -1
  29. physical_keycode = 4194322
  30. [sub_resource type="InputEventMouseButton" id="InputEventMouseButton_5tuqs"]
  31. device = -1
  32. button_mask = 1
  33. position = Vector2(95, 20)
  34. global_position = Vector2(99, 63)
  35. button_index = 1
  36. pressed = true
  37. [sub_resource type="InputEventKey" id="InputEventKey_y1gwo"]
  38. device = -1
  39. physical_keycode = 69
  40. unicode = 46
  41. [sub_resource type="InputEventJoypadButton" id="InputEventJoypadButton_n7ufn"]
  42. device = -1
  43. button_index = 1
  44. [sub_resource type="InputEventKey" id="InputEventKey_q4jus"]
  45. device = -1
  46. physical_keycode = 65
  47. unicode = 97
  48. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_oji7s"]
  49. device = -1
  50. axis_value = -1.0
  51. [sub_resource type="InputEventKey" id="InputEventKey_fi2er"]
  52. device = -1
  53. physical_keycode = 68
  54. unicode = 101
  55. [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_j1j4m"]
  56. device = -1
  57. axis_value = 1.0
  58. [node name="JeepPrompts" type="VBoxContainer"]
  59. offset_left = 193.0
  60. offset_right = 193.0
  61. offset_bottom = 100.0
  62. script = ExtResource("1_vo7iq")
  63. [node name="PromptsTitle" type="Label" parent="."]
  64. layout_mode = 2
  65. theme_override_font_sizes/font_size = 44
  66. text = "How that's jeep working?"
  67. horizontal_alignment = 1
  68. [node name="AcceleratePrompt" type="HBoxContainer" parent="."]
  69. layout_mode = 2
  70. script = ExtResource("1_vo7iq")
  71. [node name="AccelerateLabel" type="Label" parent="AcceleratePrompt"]
  72. layout_mode = 2
  73. theme_override_font_sizes/font_size = 34
  74. text = "Accelerate"
  75. [node name="AccelerateMaxActionPrompt" type="TextureRect" parent="AcceleratePrompt"]
  76. custom_minimum_size = Vector2(100, 100)
  77. layout_mode = 2
  78. texture = ExtResource("2_xdg6b")
  79. stretch_mode = 5
  80. script = ExtResource("3_ql8fw")
  81. action = "main"
  82. icon = 0
  83. events = Array[InputEvent]([SubResource("InputEventKey_jm5e5"), SubResource("InputEventJoypadButton_wj4uo")])
  84. [node name="AccelerateAnalogActionPrompt" type="TextureRect" parent="AcceleratePrompt"]
  85. custom_minimum_size = Vector2(100, 100)
  86. layout_mode = 2
  87. texture = ExtResource("4_akj72")
  88. stretch_mode = 5
  89. script = ExtResource("3_ql8fw")
  90. action = "analog_main"
  91. icon = 0
  92. events = Array[InputEvent]([SubResource("InputEventJoypadMotion_8t453"), SubResource("InputEventKey_07cvw")])
  93. [node name="ReversePrompt" type="HBoxContainer" parent="."]
  94. layout_mode = 2
  95. script = ExtResource("1_vo7iq")
  96. [node name="ReverseLabel" type="Label" parent="ReversePrompt"]
  97. layout_mode = 2
  98. theme_override_font_sizes/font_size = 34
  99. text = "Reverse
  100. "
  101. [node name="ReverseActionPrompt" type="TextureRect" parent="ReversePrompt"]
  102. custom_minimum_size = Vector2(100, 100)
  103. layout_mode = 2
  104. texture = ExtResource("5_c14bx")
  105. stretch_mode = 5
  106. script = ExtResource("3_ql8fw")
  107. action = "analog_secondary"
  108. icon = 0
  109. events = Array[InputEvent]([SubResource("InputEventJoypadMotion_pn7hm"), SubResource("InputEventKey_7j6ii")])
  110. [node name="BreakPrompt" type="HBoxContainer" parent="."]
  111. layout_mode = 2
  112. script = ExtResource("1_vo7iq")
  113. [node name="BreakLabel" type="Label" parent="BreakPrompt"]
  114. layout_mode = 2
  115. theme_override_font_sizes/font_size = 34
  116. text = "Break
  117. "
  118. [node name="BreakActionPrompt" type="TextureRect" parent="BreakPrompt"]
  119. custom_minimum_size = Vector2(100, 100)
  120. layout_mode = 2
  121. texture = ExtResource("6_04hns")
  122. stretch_mode = 5
  123. script = ExtResource("3_ql8fw")
  124. action = "stop"
  125. icon = 0
  126. events = Array[InputEvent]([SubResource("InputEventMouseButton_5tuqs"), SubResource("InputEventKey_y1gwo"), SubResource("InputEventJoypadButton_n7ufn")])
  127. [node name="SteerPrompt" type="HBoxContainer" parent="."]
  128. layout_mode = 2
  129. script = ExtResource("1_vo7iq")
  130. [node name="SteerLabel" type="Label" parent="SteerPrompt"]
  131. layout_mode = 2
  132. theme_override_font_sizes/font_size = 34
  133. text = "Steer"
  134. [node name="SteerLeftActionPrompt" type="TextureRect" parent="SteerPrompt"]
  135. custom_minimum_size = Vector2(100, 100)
  136. layout_mode = 2
  137. texture = ExtResource("7_w11vb")
  138. stretch_mode = 5
  139. script = ExtResource("3_ql8fw")
  140. action = "move_left"
  141. icon = 0
  142. events = Array[InputEvent]([SubResource("InputEventKey_q4jus"), SubResource("InputEventJoypadMotion_oji7s")])
  143. [node name="SteerRightActionPrompt" type="TextureRect" parent="SteerPrompt"]
  144. custom_minimum_size = Vector2(100, 100)
  145. layout_mode = 2
  146. texture = ExtResource("8_m6wya")
  147. stretch_mode = 5
  148. script = ExtResource("3_ql8fw")
  149. action = "move_right"
  150. icon = 0
  151. events = Array[InputEvent]([SubResource("InputEventKey_fi2er"), SubResource("InputEventJoypadMotion_j1j4m")])