SelectableInputOptionNode.tscn 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. [gd_scene load_steps=8 format=3 uid="uid://bflpf2fdtbgkt"]
  2. [ext_resource type="Script" uid="uid://w6t6q5vfow5p" path="res://Scripts/UI/SelectableInputOptionNode.gd" id="1_74gxt"]
  3. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_voltx"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_voltx"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_q1ixt"]
  6. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="5_voltx"]
  7. [ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="6_q1ixt"]
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_qti1l"]
  9. atlas = ExtResource("2_voltx")
  10. region = Rect2(0, 0, 8, 8)
  11. [node name="SelectableOptionNode" type="HBoxContainer"]
  12. theme_override_constants/separation = 0
  13. script = ExtResource("1_74gxt")
  14. settings_category = "keyboard"
  15. [node name="Cursor" type="TextureRect" parent="."]
  16. layout_mode = 2
  17. texture = SubResource("AtlasTexture_qti1l")
  18. stretch_mode = 3
  19. [node name="ResourceSetter" type="Node" parent="Cursor" node_paths=PackedStringArray("node_to_affect")]
  20. script = ExtResource("3_voltx")
  21. node_to_affect = NodePath("..")
  22. property_name = "texture"
  23. mode = 1
  24. resource_json = ExtResource("4_q1ixt")
  25. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  26. [node name="Title" type="Label" parent="."]
  27. layout_mode = 2
  28. text = "action:"
  29. uppercase = true
  30. [node name="Value" type="Label" parent="."]
  31. layout_mode = 2
  32. size_flags_horizontal = 10
  33. text = "press any.."
  34. uppercase = true
  35. [node name="Timer" type="Timer" parent="."]
  36. wait_time = 3.0
  37. one_shot = true
  38. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  39. script = ExtResource("5_voltx")
  40. labels = [NodePath("../Title"), NodePath("../Value")]
  41. resource = ExtResource("6_q1ixt")
  42. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
  43. [connection signal="timeout" from="Timer" to="." method="cancel_remap"]