SelectableSliderNode.tscn 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [gd_scene load_steps=10 format=3 uid="uid://dtiqcfrw110kd"]
  2. [ext_resource type="Script" uid="uid://cufb1mxff7b8f" path="res://Scripts/UI/SelectableSliderNode.gd" id="1_ro726"]
  3. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_rggaq"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_5rt0a"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_b21k4"]
  6. [ext_resource type="AudioStream" uid="uid://drs3md0tuek2w" path="res://Assets/Audio/SFX/Beep.wav" id="4_rggaq"]
  7. [ext_resource type="Script" uid="uid://d63p6qr5a748" path="res://Scripts/UI/AutoScrollContainer.gd" id="5_b21k4"]
  8. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="6_5rt0a"]
  9. [ext_resource type="Resource" uid="uid://8dcuxbc3h2u2" path="res://Resources/ThemedResources/Font.tres" id="7_b21k4"]
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_vnuis"]
  11. atlas = ExtResource("2_rggaq")
  12. region = Rect2(0, 0, 8, 8)
  13. [node name="SelectableOptionNode" type="HBoxContainer"]
  14. offset_right = 256.0
  15. offset_bottom = 16.0
  16. size_flags_horizontal = 3
  17. theme_override_constants/separation = 0
  18. script = ExtResource("1_ro726")
  19. selected = true
  20. [node name="Cursor" type="TextureRect" parent="."]
  21. layout_mode = 2
  22. texture = SubResource("AtlasTexture_vnuis")
  23. stretch_mode = 3
  24. [node name="ResourceSetter" type="Node" parent="Cursor" node_paths=PackedStringArray("node_to_affect")]
  25. script = ExtResource("3_5rt0a")
  26. node_to_affect = NodePath("..")
  27. property_name = "texture"
  28. mode = 1
  29. resource_json = ExtResource("4_b21k4")
  30. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  31. [node name="AutoScrollContainer" type="ScrollContainer" parent="."]
  32. layout_mode = 2
  33. size_flags_horizontal = 3
  34. horizontal_scroll_mode = 3
  35. vertical_scroll_mode = 0
  36. script = ExtResource("5_b21k4")
  37. metadata/_custom_type_script = "uid://d63p6qr5a748"
  38. [node name="Title" type="Label" parent="AutoScrollContainer"]
  39. unique_name_in_owner = true
  40. layout_mode = 2
  41. text = "mode:"
  42. uppercase = true
  43. [node name="Value" type="Label" parent="."]
  44. layout_mode = 2
  45. size_flags_horizontal = 10
  46. text = "◄├-----┼----┤►"
  47. uppercase = true
  48. [node name="SFX" type="AudioStreamPlayer" parent="."]
  49. stream = ExtResource("4_rggaq")
  50. volume_db = 10.0
  51. bus = &"SFX"
  52. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  53. script = ExtResource("6_5rt0a")
  54. labels = [NodePath("../AutoScrollContainer/Title"), NodePath("../Value")]
  55. resource = ExtResource("7_b21k4")
  56. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"