CharacterSelect.tscn 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. [gd_scene load_steps=14 format=3 uid="uid://ci678koo0peoa"]
  2. [ext_resource type="Theme" uid="uid://dtn507x2b5de7" path="res://Resources/Theme.tres" id="1_b1bds"]
  3. [ext_resource type="Script" uid="uid://d0f4edmfxs2pu" path="res://Scripts/UI/CharacterSelect.gd" id="1_en0c6"]
  4. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="3_8l01y"]
  5. [ext_resource type="Texture2D" uid="uid://hu770pufown3" path="res://Assets/Sprites/UI/CharacterSelectSpotlight.png" id="4_mgr7r"]
  6. [ext_resource type="SpriteFrames" uid="uid://df4enjjl84mji" path="res://Resources/SpriteFrames/Player/Mario/Small.tres" id="5_l7t2o"]
  7. [ext_resource type="Script" uid="uid://dt2p68xl462v2" path="res://Scripts/Parts/TextShadowColourChanger.gd" id="6_0j631"]
  8. [ext_resource type="Script" uid="uid://b08qfwj5jk6g1" path="res://Scripts/Parts/PlayerSprite.gd" id="6_0oqrn"]
  9. [ext_resource type="JSON" path="res://Assets/Sprites/Players/Mario/CharacterInfo.json" id="7_agtau"]
  10. [ext_resource type="Script" uid="uid://dwtrmo82e12ud" path="res://Scripts/Parts/ColourPaletteSampler.gd" id="7_mgr7r"]
  11. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="10_agtau"]
  12. [ext_resource type="Script" uid="uid://cbal8ms2oe1ik" path="res://Scripts/Classes/Components/ResourceSetterNew.gd" id="14_a25p8"]
  13. [sub_resource type="StyleBoxLine" id="StyleBoxLine_2ehcx"]
  14. color = Color(1, 1, 1, 1)
  15. [sub_resource type="StyleBoxLine" id="StyleBoxLine_agtau"]
  16. color = Color(1, 1, 1, 1)
  17. [node name="CharacterSelect" type="Control"]
  18. layout_mode = 3
  19. anchors_preset = 8
  20. anchor_left = 0.5
  21. anchor_top = 0.5
  22. anchor_right = 0.5
  23. anchor_bottom = 0.5
  24. offset_left = -88.0
  25. offset_top = -48.0
  26. offset_right = 88.0
  27. offset_bottom = 48.0
  28. grow_horizontal = 2
  29. grow_vertical = 2
  30. theme = ExtResource("1_b1bds")
  31. script = ExtResource("1_en0c6")
  32. [node name="Panel" type="PanelContainer" parent="."]
  33. layout_mode = 1
  34. anchors_preset = 15
  35. anchor_right = 1.0
  36. anchor_bottom = 1.0
  37. grow_horizontal = 2
  38. grow_vertical = 2
  39. theme_override_styles/panel = ExtResource("3_8l01y")
  40. [node name="MarginContainer" type="MarginContainer" parent="Panel"]
  41. layout_mode = 2
  42. theme_override_constants/margin_left = -4
  43. theme_override_constants/margin_top = -4
  44. theme_override_constants/margin_right = -4
  45. theme_override_constants/margin_bottom = -4
  46. [node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
  47. layout_mode = 2
  48. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
  49. layout_mode = 2
  50. size_flags_horizontal = 4
  51. text = "MENU_CHARA_SELECT"
  52. uppercase = true
  53. [node name="HSeparator" type="HSeparator" parent="Panel/MarginContainer/VBoxContainer/Label"]
  54. layout_mode = 1
  55. anchors_preset = 12
  56. anchor_top = 1.0
  57. anchor_right = 1.0
  58. anchor_bottom = 1.0
  59. offset_top = -4.0
  60. grow_horizontal = 2
  61. grow_vertical = 0
  62. theme_override_styles/separator = SubResource("StyleBoxLine_2ehcx")
  63. [node name="Spotlight" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer"]
  64. self_modulate = Color(0.96862745, 0.22352941, 0.0627451, 1)
  65. layout_mode = 2
  66. size_flags_horizontal = 4
  67. size_flags_vertical = 0
  68. texture = ExtResource("4_mgr7r")
  69. stretch_mode = 2
  70. [node name="ColourPaletteSampler" type="Node" parent="Panel/MarginContainer/VBoxContainer/Spotlight" node_paths=PackedStringArray("node_to_affect")]
  71. unique_name_in_owner = true
  72. script = ExtResource("7_mgr7r")
  73. node_to_affect = NodePath("..")
  74. value_to_set = "self_modulate"
  75. metadata/_custom_type_script = "uid://dwtrmo82e12ud"
  76. [node name="PlayerColourTexture" type="Node" parent="Panel/MarginContainer/VBoxContainer/Spotlight/ColourPaletteSampler" node_paths=PackedStringArray("node_to_affect")]
  77. unique_name_in_owner = true
  78. script = ExtResource("14_a25p8")
  79. node_to_affect = NodePath("..")
  80. property_name = "texture"
  81. mode = 1
  82. resource_json = ExtResource("7_agtau")
  83. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  84. [node name="Left" type="AnimatedSprite2D" parent="Panel/MarginContainer/VBoxContainer/Spotlight" node_paths=PackedStringArray("resource_setter")]
  85. unique_name_in_owner = true
  86. modulate = Color(0.3491902, 0.3491902, 0.3491902, 1)
  87. position = Vector2(-32, 60)
  88. sprite_frames = ExtResource("5_l7t2o")
  89. animation = &"FaceForward"
  90. offset = Vector2(0, -16)
  91. script = ExtResource("6_0oqrn")
  92. force_character = "Mario"
  93. resource_setter = NodePath("ResourceSetterNew")
  94. metadata/_custom_type_script = "uid://b08qfwj5jk6g1"
  95. [node name="ResourceSetterNew" type="Node" parent="Panel/MarginContainer/VBoxContainer/Spotlight/Left" node_paths=PackedStringArray("node_to_affect")]
  96. script = ExtResource("14_a25p8")
  97. node_to_affect = NodePath("..")
  98. property_name = "sprite_frames"
  99. use_cache = false
  100. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  101. [node name="Selected" type="AnimatedSprite2D" parent="Panel/MarginContainer/VBoxContainer/Spotlight" node_paths=PackedStringArray("resource_setter")]
  102. unique_name_in_owner = true
  103. position = Vector2(24, 46)
  104. sprite_frames = ExtResource("5_l7t2o")
  105. animation = &"Pose"
  106. offset = Vector2(0, -16)
  107. script = ExtResource("6_0oqrn")
  108. force_character = "Toad"
  109. resource_setter = NodePath("ResourceSetterNew")
  110. metadata/_custom_type_script = "uid://b08qfwj5jk6g1"
  111. [node name="ResourceSetterNew" type="Node" parent="Panel/MarginContainer/VBoxContainer/Spotlight/Selected"]
  112. script = ExtResource("14_a25p8")
  113. use_cache = false
  114. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  115. [node name="Right" type="AnimatedSprite2D" parent="Panel/MarginContainer/VBoxContainer/Spotlight" node_paths=PackedStringArray("resource_setter")]
  116. unique_name_in_owner = true
  117. modulate = Color(0.3491902, 0.3491902, 0.38109186, 1)
  118. position = Vector2(80, 60)
  119. sprite_frames = ExtResource("5_l7t2o")
  120. animation = &"FaceForward"
  121. offset = Vector2(0, -16)
  122. script = ExtResource("6_0oqrn")
  123. force_character = "Mario"
  124. resource_setter = NodePath("ResourceSetterNew")
  125. metadata/_custom_type_script = "uid://b08qfwj5jk6g1"
  126. [node name="ResourceSetterNew" type="Node" parent="Panel/MarginContainer/VBoxContainer/Spotlight/Right" node_paths=PackedStringArray("node_to_affect")]
  127. script = ExtResource("14_a25p8")
  128. node_to_affect = NodePath("..")
  129. property_name = "sprite_frames"
  130. use_cache = false
  131. metadata/_custom_type_script = "uid://cbal8ms2oe1ik"
  132. [node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/Spotlight"]
  133. layout_mode = 0
  134. offset_left = 40.0
  135. offset_top = 20.0
  136. offset_right = 56.0
  137. offset_bottom = 36.0
  138. text = "►"
  139. [node name="Label2" type="Label" parent="Panel/MarginContainer/VBoxContainer/Spotlight"]
  140. layout_mode = 0
  141. offset_left = -8.0
  142. offset_top = 20.0
  143. offset_right = 8.0
  144. offset_bottom = 36.0
  145. text = "◄"
  146. [node name="CharacterName" type="Label" parent="Panel/MarginContainer/VBoxContainer"]
  147. unique_name_in_owner = true
  148. layout_mode = 2
  149. size_flags_horizontal = 4
  150. theme_override_colors/font_shadow_color = Color(0, 0, 0, 0)
  151. text = "MARIO"
  152. horizontal_alignment = 1
  153. uppercase = true
  154. [node name="HSeparator" type="HSeparator" parent="Panel/MarginContainer/VBoxContainer/CharacterName"]
  155. layout_mode = 1
  156. anchors_preset = 10
  157. anchor_right = 1.0
  158. offset_bottom = 4.0
  159. grow_horizontal = 2
  160. theme_override_styles/separator = SubResource("StyleBoxLine_agtau")
  161. [node name="TextShadowColourChanger" type="Node" parent="Panel/MarginContainer/VBoxContainer/CharacterName" node_paths=PackedStringArray("labels")]
  162. script = ExtResource("6_0j631")
  163. labels = [NodePath("..")]
  164. metadata/_custom_type_script = "uid://dt2p68xl462v2"
  165. [node name="ColourPaletteSampler" type="Node" parent="Panel/MarginContainer/VBoxContainer/CharacterName/TextShadowColourChanger" node_paths=PackedStringArray("node_to_affect")]
  166. script = ExtResource("7_mgr7r")
  167. node_to_affect = NodePath("..")
  168. value_to_set = "override_shadow_colour"
  169. metadata/_custom_type_script = "uid://dwtrmo82e12ud"
  170. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  171. script = ExtResource("10_agtau")
  172. labels = [NodePath("../Panel/MarginContainer/VBoxContainer/Label"), NodePath("../Panel/MarginContainer/VBoxContainer/Spotlight/Label2"), NodePath("../Panel/MarginContainer/VBoxContainer/Spotlight/Label"), NodePath("../Panel/MarginContainer/VBoxContainer/CharacterName")]
  173. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"