AchievementUnlockPopup.tscn 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. [gd_scene load_steps=12 format=3 uid="uid://ud3ktt2adw8l"]
  2. [ext_resource type="Script" uid="uid://dmp6qqm3q16pc" path="res://Scripts/UI/AchievementUnlockPopup.gd" id="1_uc4d1"]
  3. [ext_resource type="StyleBox" uid="uid://comkghpj0djcl" path="res://Resources/UI/Panel.tres" id="1_x3tc0"]
  4. [ext_resource type="Texture2D" uid="uid://bul3c11keqjfi" path="res://Assets/Sprites/UI/AchievementIcons.png" id="2_uc4d1"]
  5. [ext_resource type="AudioStream" uid="uid://yxb07387lw0o" path="res://Assets/Audio/SFX/AchievementUnlock.wav" id="3_r2311"]
  6. [ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="5_01gcg"]
  7. [ext_resource type="Script" uid="uid://dmtw1jesw1vl7" path="res://Scripts/Classes/Components/PackStreamPlayer.gd" id="5_ok8j7"]
  8. [sub_resource type="StyleBoxLine" id="StyleBoxLine_wsi03"]
  9. color = Color(1, 1, 1, 1)
  10. grow_begin = -4.0
  11. grow_end = -5.0
  12. [sub_resource type="Animation" id="Animation_twc32"]
  13. resource_name = "Appear"
  14. length = 3.5
  15. tracks/0/type = "value"
  16. tracks/0/imported = false
  17. tracks/0/enabled = true
  18. tracks/0/path = NodePath("SFX:playing")
  19. tracks/0/interp = 1
  20. tracks/0/loop_wrap = true
  21. tracks/0/keys = {
  22. "times": PackedFloat32Array(0),
  23. "transitions": PackedFloat32Array(1),
  24. "update": 1,
  25. "values": [true]
  26. }
  27. tracks/1/type = "value"
  28. tracks/1/imported = false
  29. tracks/1/enabled = true
  30. tracks/1/path = NodePath("Control:position")
  31. tracks/1/interp = 1
  32. tracks/1/loop_wrap = true
  33. tracks/1/keys = {
  34. "times": PackedFloat32Array(0, 0.5, 3.0000002, 3.5000002),
  35. "transitions": PackedFloat32Array(1, 1, 1, 1),
  36. "update": 0,
  37. "values": [Vector2(0, 96), Vector2(0, 0), Vector2(0, 0), Vector2(0, 96)]
  38. }
  39. [sub_resource type="Animation" id="Animation_uc4d1"]
  40. resource_name = "AppearLong"
  41. length = 5.0
  42. tracks/0/type = "value"
  43. tracks/0/imported = false
  44. tracks/0/enabled = true
  45. tracks/0/path = NodePath("SFX:playing")
  46. tracks/0/interp = 1
  47. tracks/0/loop_wrap = true
  48. tracks/0/keys = {
  49. "times": PackedFloat32Array(0),
  50. "transitions": PackedFloat32Array(1),
  51. "update": 1,
  52. "values": [true]
  53. }
  54. tracks/1/type = "value"
  55. tracks/1/imported = false
  56. tracks/1/enabled = true
  57. tracks/1/path = NodePath("Control:position")
  58. tracks/1/interp = 1
  59. tracks/1/loop_wrap = true
  60. tracks/1/keys = {
  61. "times": PackedFloat32Array(0, 0.5, 4.5, 5),
  62. "transitions": PackedFloat32Array(1, 1, 1, 1),
  63. "update": 0,
  64. "values": [Vector2(0, 96), Vector2(0, 0), Vector2(0, 0), Vector2(0, 96)]
  65. }
  66. [sub_resource type="Animation" id="Animation_wjo1g"]
  67. length = 0.001
  68. tracks/0/type = "value"
  69. tracks/0/imported = false
  70. tracks/0/enabled = true
  71. tracks/0/path = NodePath("SFX:playing")
  72. tracks/0/interp = 1
  73. tracks/0/loop_wrap = true
  74. tracks/0/keys = {
  75. "times": PackedFloat32Array(0),
  76. "transitions": PackedFloat32Array(1),
  77. "update": 1,
  78. "values": [false]
  79. }
  80. tracks/1/type = "value"
  81. tracks/1/imported = false
  82. tracks/1/enabled = true
  83. tracks/1/path = NodePath("Control:position")
  84. tracks/1/interp = 1
  85. tracks/1/loop_wrap = true
  86. tracks/1/keys = {
  87. "times": PackedFloat32Array(0),
  88. "transitions": PackedFloat32Array(1),
  89. "update": 0,
  90. "values": [Vector2(0, 96)]
  91. }
  92. [sub_resource type="AnimationLibrary" id="AnimationLibrary_wsi03"]
  93. _data = {
  94. &"Appear": SubResource("Animation_twc32"),
  95. &"AppearLong": SubResource("Animation_uc4d1"),
  96. &"RESET": SubResource("Animation_wjo1g")
  97. }
  98. [node name="AchievementUnlock" type="Control"]
  99. layout_mode = 3
  100. anchors_preset = 3
  101. anchor_left = 1.0
  102. anchor_top = 1.0
  103. anchor_right = 1.0
  104. anchor_bottom = 1.0
  105. grow_horizontal = 0
  106. grow_vertical = 0
  107. script = ExtResource("1_uc4d1")
  108. [node name="Control" type="Control" parent="."]
  109. anchors_preset = 0
  110. offset_top = 96.0
  111. offset_bottom = 96.0
  112. [node name="Panel" type="PanelContainer" parent="Control"]
  113. self_modulate = Color(1, 1, 1, 0.8)
  114. layout_mode = 1
  115. anchors_preset = 3
  116. anchor_left = 1.0
  117. anchor_top = 1.0
  118. anchor_right = 1.0
  119. anchor_bottom = 1.0
  120. offset_left = -128.0
  121. offset_top = -64.0
  122. grow_horizontal = 0
  123. grow_vertical = 0
  124. theme_override_styles/panel = ExtResource("1_x3tc0")
  125. [node name="MarginContainer" type="MarginContainer" parent="Control/Panel"]
  126. layout_mode = 2
  127. theme_override_constants/margin_left = 0
  128. theme_override_constants/margin_top = -8
  129. theme_override_constants/margin_right = 0
  130. theme_override_constants/margin_bottom = -8
  131. [node name="VBoxContainer" type="VBoxContainer" parent="Control/Panel/MarginContainer"]
  132. layout_mode = 2
  133. theme_override_constants/separation = -5
  134. [node name="Label" type="Label" parent="Control/Panel/MarginContainer/VBoxContainer"]
  135. layout_mode = 2
  136. text = "ACHIEVEMENT_UNLOCK"
  137. horizontal_alignment = 1
  138. uppercase = true
  139. [node name="HSeparator" type="HSeparator" parent="Control/Panel/MarginContainer/VBoxContainer/Label"]
  140. layout_mode = 1
  141. anchors_preset = 12
  142. anchor_top = 1.0
  143. anchor_right = 1.0
  144. anchor_bottom = 1.0
  145. offset_top = -4.0
  146. grow_horizontal = 2
  147. grow_vertical = 0
  148. theme_override_styles/separator = SubResource("StyleBoxLine_wsi03")
  149. [node name="HBoxContainer" type="HBoxContainer" parent="Control/Panel/MarginContainer/VBoxContainer"]
  150. layout_mode = 2
  151. size_flags_vertical = 6
  152. alignment = 1
  153. [node name="Icon" type="NinePatchRect" parent="Control/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  154. unique_name_in_owner = true
  155. custom_minimum_size = Vector2(32, 32)
  156. layout_mode = 2
  157. size_flags_horizontal = 0
  158. texture = ExtResource("2_uc4d1")
  159. region_rect = Rect2(0, 0, 32, 32)
  160. [node name="Icon2" type="NinePatchRect" parent="Control/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  161. unique_name_in_owner = true
  162. visible = false
  163. custom_minimum_size = Vector2(32, 32)
  164. layout_mode = 2
  165. size_flags_horizontal = 0
  166. texture = ExtResource("2_uc4d1")
  167. region_rect = Rect2(0, 0, 32, 32)
  168. [node name="Icon3" type="NinePatchRect" parent="Control/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  169. unique_name_in_owner = true
  170. visible = false
  171. custom_minimum_size = Vector2(32, 32)
  172. layout_mode = 2
  173. size_flags_horizontal = 0
  174. texture = ExtResource("2_uc4d1")
  175. region_rect = Rect2(0, 0, 32, 32)
  176. [node name="Icon4" type="NinePatchRect" parent="Control/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  177. unique_name_in_owner = true
  178. visible = false
  179. custom_minimum_size = Vector2(32, 32)
  180. layout_mode = 2
  181. size_flags_horizontal = 0
  182. texture = ExtResource("2_uc4d1")
  183. region_rect = Rect2(0, 0, 32, 32)
  184. [node name="Extra" type="Label" parent="Control/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
  185. unique_name_in_owner = true
  186. visible = false
  187. layout_mode = 2
  188. text = "+1"
  189. [node name="AchievementName" type="Label" parent="Control/Panel/MarginContainer/VBoxContainer"]
  190. unique_name_in_owner = true
  191. layout_mode = 2
  192. size_flags_horizontal = 3
  193. text = "aaaaaaaaaaaaaaaaa"
  194. horizontal_alignment = 1
  195. text_overrun_behavior = 3
  196. uppercase = true
  197. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  198. libraries = {
  199. &"": SubResource("AnimationLibrary_wsi03")
  200. }
  201. [node name="SFX" type="AudioStreamPlayer" parent="."]
  202. stream = ExtResource("3_r2311")
  203. bus = &"SFX"
  204. script = ExtResource("5_ok8j7")
  205. [node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
  206. script = ExtResource("5_01gcg")
  207. labels = [NodePath("../Control/Panel/MarginContainer/VBoxContainer/Label"), NodePath("../Control/Panel/MarginContainer/VBoxContainer/HBoxContainer/Extra"), NodePath("../Control/Panel/MarginContainer/VBoxContainer/AchievementName")]
  208. metadata/_custom_type_script = "uid://co6tjg3w6qpd8"