[gd_scene load_steps=15 format=3 uid="uid://y4gc5uinkcqj"] [ext_resource type="Script" path="res://component/ui/input_prompts/move/move_prompt.gd" id="1_b1cf6"] [ext_resource type="Texture2D" uid="uid://cah6r1q5x2lte" path="res://addons/input_prompts/icons/generic/left_stick_left.png" id="1_lp1l5"] [ext_resource type="Script" path="res://addons/input_prompts/action_prompt/action_prompt.gd" id="2_hmylp"] [ext_resource type="Texture2D" uid="uid://c03r3n0nfrjck" path="res://addons/input_prompts/icons/generic/left_stick_right.png" id="3_l042n"] [ext_resource type="Texture2D" uid="uid://bntsrcd3hjcex" path="res://addons/input_prompts/icons/generic/left_stick_up.png" id="4_e345q"] [ext_resource type="Texture2D" uid="uid://dreirjfpqj40a" path="res://addons/input_prompts/icons/generic/left_stick_down.png" id="5_vrthb"] [sub_resource type="InputEventKey" id="InputEventKey_5ba2r"] device = -1 physical_keycode = 65 unicode = 97 [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_2p15s"] device = -1 axis_value = -1.0 [sub_resource type="InputEventKey" id="InputEventKey_vmcvq"] device = -1 physical_keycode = 68 unicode = 101 [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_auo40"] device = -1 axis_value = 1.0 [sub_resource type="InputEventKey" id="InputEventKey_urkwk"] device = -1 physical_keycode = 87 unicode = 44 [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_sgel0"] device = -1 axis = 1 axis_value = -1.0 [sub_resource type="InputEventKey" id="InputEventKey_3sn2y"] device = -1 physical_keycode = 83 unicode = 111 [sub_resource type="InputEventJoypadMotion" id="InputEventJoypadMotion_kmldo"] device = -1 axis = 1 axis_value = 1.0 [node name="MoveContainer" type="HBoxContainer"] script = ExtResource("1_b1cf6") [node name="MoveLabel" type="Label" parent="."] layout_mode = 2 theme_override_font_sizes/font_size = 34 text = "Move" [node name="MoveLeftActionPrompt" type="TextureRect" parent="."] custom_minimum_size = Vector2(100, 100) layout_mode = 2 texture = ExtResource("1_lp1l5") stretch_mode = 5 script = ExtResource("2_hmylp") action = "move_left" icon = 0 events = Array[InputEvent]([SubResource("InputEventKey_5ba2r"), SubResource("InputEventJoypadMotion_2p15s")]) [node name="MoveRightActionPrompt" type="TextureRect" parent="."] custom_minimum_size = Vector2(100, 100) layout_mode = 2 texture = ExtResource("3_l042n") stretch_mode = 5 script = ExtResource("2_hmylp") action = "move_right" icon = 0 events = Array[InputEvent]([SubResource("InputEventKey_vmcvq"), SubResource("InputEventJoypadMotion_auo40")]) [node name="MoveForwardActionPrompt" type="TextureRect" parent="."] custom_minimum_size = Vector2(100, 100) layout_mode = 2 texture = ExtResource("4_e345q") stretch_mode = 5 script = ExtResource("2_hmylp") action = "move_forward" icon = 0 events = Array[InputEvent]([SubResource("InputEventKey_urkwk"), SubResource("InputEventJoypadMotion_sgel0")]) [node name="MoveBackActionPrompt" type="TextureRect" parent="."] custom_minimum_size = Vector2(100, 100) layout_mode = 2 texture = ExtResource("5_vrthb") stretch_mode = 5 script = ExtResource("2_hmylp") action = "move_back" icon = 0 events = Array[InputEvent]([SubResource("InputEventKey_3sn2y"), SubResource("InputEventJoypadMotion_kmldo")]) [connection signal="pressed" from="MoveLeftActionPrompt" to="MoveLeftActionPrompt" method="queue_free"] [connection signal="tree_exited" from="MoveLeftActionPrompt" to="." method="_on_child_exited_tree"] [connection signal="pressed" from="MoveRightActionPrompt" to="MoveRightActionPrompt" method="queue_free"] [connection signal="tree_exited" from="MoveRightActionPrompt" to="." method="_on_child_exited_tree"] [connection signal="pressed" from="MoveForwardActionPrompt" to="MoveForwardActionPrompt" method="queue_free"] [connection signal="tree_exited" from="MoveForwardActionPrompt" to="." method="_on_child_exited_tree"] [connection signal="pressed" from="MoveBackActionPrompt" to="MoveBackActionPrompt" method="queue_free"] [connection signal="tree_exited" from="MoveBackActionPrompt" to="." method="_on_child_exited_tree"]