DataDeletionNode.tscn 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. [gd_scene load_steps=8 format=3 uid="uid://bqy0nm0h7f5sl"]
  2. [ext_resource type="Script" uid="uid://cmxqrlwdt6tst" path="res://Scripts/UI/DataDeletionNode.gd" id="1_ecqb2"]
  3. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="2_4prjd"]
  4. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_a8hnx"]
  5. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_k0d70"]
  6. [ext_resource type="Script" uid="uid://d63p6qr5a748" path="res://Scripts/UI/AutoScrollContainer.gd" id="5_85bta"]
  7. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="6_tyvfd"]
  8. [sub_resource type="AtlasTexture" id="AtlasTexture_qti1l"]
  9. atlas = ExtResource("2_4prjd")
  10. region = Rect2(0, 0, 8, 8)
  11. [node name="SelectableOptionNode" type="HBoxContainer"]
  12. offset_right = 253.0
  13. offset_bottom = 8.0
  14. focus_mode = 2
  15. theme_override_constants/separation = 0
  16. script = ExtResource("1_ecqb2")
  17. campaigns = Array[String](["SMB1", "SMBLL", "SMBS", "SMBANN"])
  18. [node name="Cursor" type="Control" parent="."]
  19. custom_minimum_size = Vector2(8, 0)
  20. layout_mode = 2
  21. [node name="Cursor" type="TextureRect" parent="Cursor"]
  22. layout_mode = 0
  23. offset_top = 4.0
  24. offset_right = 8.0
  25. offset_bottom = 12.0
  26. texture = SubResource("AtlasTexture_qti1l")
  27. stretch_mode = 2
  28. [node name="ResourceSetter" type="Node" parent="Cursor/Cursor" node_paths=PackedStringArray("node_to_affect")]
  29. script = ExtResource("3_a8hnx")
  30. node_to_affect = NodePath("..")
  31. property_name = "texture"
  32. mode = 1
  33. resource_json = ExtResource("4_k0d70")
  34. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  35. [node name="AutoScrollContainer" type="ScrollContainer" parent="."]
  36. layout_mode = 2
  37. size_flags_horizontal = 3
  38. horizontal_scroll_mode = 3
  39. vertical_scroll_mode = 0
  40. script = ExtResource("5_85bta")
  41. metadata/_custom_type_script = "uid://d63p6qr5a748"
  42. [node name="Title" type="Label" parent="AutoScrollContainer"]
  43. unique_name_in_owner = true
  44. layout_mode = 2
  45. size_flags_horizontal = 3
  46. text = "modeadpiawjda:"
  47. uppercase = true
  48. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  49. script = ExtResource("6_tyvfd")
  50. labels = [NodePath("../AutoScrollContainer/Title"), NodePath("../VBoxContainer/HBoxContainer/AutoScrollContainer2/Value")]
  51. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
  52. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  53. layout_mode = 2
  54. theme_override_constants/separation = -4
  55. [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
  56. layout_mode = 2
  57. theme_override_constants/separation = -4
  58. [node name="LeftArrow" type="Label" parent="VBoxContainer/HBoxContainer"]
  59. unique_name_in_owner = true
  60. layout_mode = 2
  61. text = "◄"
  62. uppercase = true
  63. [node name="AutoScrollContainer2" type="ScrollContainer" parent="VBoxContainer/HBoxContainer"]
  64. unique_name_in_owner = true
  65. custom_minimum_size = Vector2(56, 0)
  66. layout_mode = 2
  67. horizontal_scroll_mode = 3
  68. vertical_scroll_mode = 0
  69. script = ExtResource("5_85bta")
  70. is_active = true
  71. auto_minimum_resize = true
  72. metadata/_custom_type_script = "uid://d63p6qr5a748"
  73. [node name="Value" type="Label" parent="VBoxContainer/HBoxContainer/AutoScrollContainer2"]
  74. unique_name_in_owner = true
  75. layout_mode = 2
  76. size_flags_horizontal = 10
  77. text = "aaaaaa"
  78. horizontal_alignment = 1
  79. uppercase = true
  80. [node name="RightArrow" type="Label" parent="VBoxContainer/HBoxContainer"]
  81. unique_name_in_owner = true
  82. layout_mode = 2
  83. text = "►"
  84. uppercase = true
  85. [connection signal="focus_entered" from="." to="." method="set_selected" binds= [true]]
  86. [connection signal="focus_exited" from="." to="." method="set_selected" binds= [false]]