ResourcePackContainer.tscn 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. [gd_scene load_steps=11 format=3 uid="uid://lggi3b4310yl"]
  2. [ext_resource type="Script" uid="uid://cbc02k2pmw13p" path="res://Scripts/UI/ResourcePackContainer.gd" id="1_dm3ff"]
  3. [ext_resource type="Texture2D" uid="uid://3p2l7rec0gh5" path="res://Assets/Sprites/UI/Cursor.png" id="1_fcw43"]
  4. [ext_resource type="Texture2D" uid="uid://uh7uhdkv3e6s" path="res://Assets/Sprites/Blocks/QuestionBlock.png" id="2_7ke7c"]
  5. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="3_fwtyy"]
  6. [ext_resource type="JSON" path="res://Assets/Sprites/UI/Cursor.json" id="4_of2ay"]
  7. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="5_fwtyy"]
  8. [ext_resource type="Script" uid="uid://d63p6qr5a748" path="res://Scripts/UI/AutoScrollContainer.gd" id="7_khoix"]
  9. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="7_of2ay"]
  10. [sub_resource type="AtlasTexture" id="AtlasTexture_fwtyy"]
  11. atlas = ExtResource("1_fcw43")
  12. region = Rect2(0, 0, 8, 8)
  13. [sub_resource type="AtlasTexture" id="AtlasTexture_fcw43"]
  14. atlas = ExtResource("2_7ke7c")
  15. region = Rect2(0, 0, 16, 16)
  16. [node name="ResourcePackContainer" type="HBoxContainer"]
  17. custom_minimum_size = Vector2(0, 30)
  18. offset_left = 2.0
  19. offset_top = 2.0
  20. offset_right = 254.0
  21. offset_bottom = 34.0
  22. focus_mode = 2
  23. script = ExtResource("1_dm3ff")
  24. [node name="Cursor" type="TextureRect" parent="."]
  25. unique_name_in_owner = true
  26. modulate = Color(1, 1, 1, 0)
  27. layout_mode = 2
  28. texture = SubResource("AtlasTexture_fwtyy")
  29. stretch_mode = 3
  30. [node name="ResourceSetter" type="Node" parent="Cursor" node_paths=PackedStringArray("node_to_affect")]
  31. script = ExtResource("3_fwtyy")
  32. node_to_affect = NodePath("..")
  33. property_name = "texture"
  34. mode = 1
  35. resource_json = ExtResource("4_of2ay")
  36. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  37. [node name="ResourcePackContainer" type="PanelContainer" parent="."]
  38. layout_mode = 2
  39. size_flags_horizontal = 3
  40. theme_override_styles/panel = ExtResource("5_fwtyy")
  41. [node name="MarginContainer" type="MarginContainer" parent="ResourcePackContainer"]
  42. layout_mode = 2
  43. theme_override_constants/margin_left = -4
  44. theme_override_constants/margin_top = -4
  45. theme_override_constants/margin_right = -4
  46. theme_override_constants/margin_bottom = -4
  47. [node name="HBoxContainer" type="HBoxContainer" parent="ResourcePackContainer/MarginContainer"]
  48. layout_mode = 2
  49. [node name="Icon" type="TextureRect" parent="ResourcePackContainer/MarginContainer/HBoxContainer"]
  50. unique_name_in_owner = true
  51. layout_mode = 2
  52. size_flags_horizontal = 0
  53. texture = SubResource("AtlasTexture_fcw43")
  54. stretch_mode = 3
  55. [node name="VBoxContainer" type="VBoxContainer" parent="ResourcePackContainer/MarginContainer/HBoxContainer"]
  56. layout_mode = 2
  57. size_flags_horizontal = 3
  58. theme_override_constants/separation = 4
  59. [node name="TitleScroll" type="ScrollContainer" parent="ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer"]
  60. unique_name_in_owner = true
  61. custom_minimum_size = Vector2(0, 16)
  62. layout_mode = 2
  63. size_flags_vertical = 3
  64. horizontal_scroll_mode = 3
  65. vertical_scroll_mode = 3
  66. script = ExtResource("7_khoix")
  67. metadata/_custom_type_script = "uid://d63p6qr5a748"
  68. [node name="Title" type="Label" parent="ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer/TitleScroll"]
  69. unique_name_in_owner = true
  70. custom_minimum_size = Vector2(0, 8)
  71. layout_mode = 2
  72. size_flags_horizontal = 3
  73. size_flags_vertical = 3
  74. text = "TITLEAAAAAAAAAAAAAAAAAAAAAA"
  75. [node name="DescScroll" type="ScrollContainer" parent="ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer"]
  76. unique_name_in_owner = true
  77. custom_minimum_size = Vector2(0, 12)
  78. layout_mode = 2
  79. size_flags_vertical = 3
  80. horizontal_scroll_mode = 3
  81. vertical_scroll_mode = 3
  82. script = ExtResource("7_khoix")
  83. direction = 1
  84. metadata/_custom_type_script = "uid://d63p6qr5a748"
  85. [node name="Description" type="Label" parent="ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer/DescScroll"]
  86. unique_name_in_owner = true
  87. modulate = Color(0.603653, 0.603653, 0.603653, 1)
  88. custom_minimum_size = Vector2(0, 8)
  89. layout_mode = 2
  90. size_flags_horizontal = 3
  91. size_flags_vertical = 3
  92. text = "Replaces Blue Toad, with Yellow Toad"
  93. autowrap_mode = 2
  94. uppercase = true
  95. [node name="LoadedOrder" type="Label" parent="ResourcePackContainer/MarginContainer/HBoxContainer"]
  96. unique_name_in_owner = true
  97. layout_mode = 2
  98. text = "1"
  99. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  100. script = ExtResource("7_of2ay")
  101. labels = [NodePath("../ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer/TitleScroll/Title"), NodePath("../ResourcePackContainer/MarginContainer/HBoxContainer/VBoxContainer/DescScroll/Description"), NodePath("../ResourcePackContainer/MarginContainer/HBoxContainer/LoadedOrder")]
  102. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"
  103. [node name="Edit" type="Control" parent="."]
  104. custom_minimum_size = Vector2(10, 0)
  105. layout_mode = 2
  106. [node name="EditLabel" type="Label" parent="Edit"]
  107. layout_mode = 1
  108. anchors_preset = 15
  109. anchor_right = 1.0
  110. anchor_bottom = 1.0
  111. grow_horizontal = 2
  112. grow_vertical = 2
  113. text = "►"
  114. vertical_alignment = 1
  115. uppercase = true