QuitDialog.tscn 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. [gd_scene load_steps=6 format=3 uid="uid://b75f3fd7xjeya"]
  2. [ext_resource type="Script" uid="uid://fwgm5xy4jvwf" path="res://Scripts/UI/QuitDialog.gd" id="1_w3irg"]
  3. [ext_resource type="AudioStream" uid="uid://drs3md0tuek2w" path="res://Assets/Audio/SFX/Beep.wav" id="2_yapnp"]
  4. [sub_resource type="Animation" id="Animation_yapnp"]
  5. resource_name = "Animation"
  6. length = 2.0
  7. tracks/0/type = "value"
  8. tracks/0/imported = false
  9. tracks/0/enabled = true
  10. tracks/0/path = NodePath("Label:text")
  11. tracks/0/interp = 1
  12. tracks/0/loop_wrap = true
  13. tracks/0/keys = {
  14. "times": PackedFloat32Array(0, 0.5, 1, 1.5),
  15. "transitions": PackedFloat32Array(1, 1, 1, 1),
  16. "update": 1,
  17. "values": ["QUITTING GAME", "QUITTING GAME.", "QUITTING GAME..", "QUITTING GAME..."]
  18. }
  19. tracks/1/type = "value"
  20. tracks/1/imported = false
  21. tracks/1/enabled = true
  22. tracks/1/path = NodePath("AudioStreamPlayer:playing")
  23. tracks/1/interp = 1
  24. tracks/1/loop_wrap = true
  25. tracks/1/keys = {
  26. "times": PackedFloat32Array(0.5, 1, 1.5000001),
  27. "transitions": PackedFloat32Array(1, 1, 1),
  28. "update": 1,
  29. "values": [true, true, true]
  30. }
  31. [sub_resource type="Animation" id="Animation_kfsue"]
  32. length = 0.001
  33. tracks/0/type = "value"
  34. tracks/0/imported = false
  35. tracks/0/enabled = true
  36. tracks/0/path = NodePath("Label:text")
  37. tracks/0/interp = 1
  38. tracks/0/loop_wrap = true
  39. tracks/0/keys = {
  40. "times": PackedFloat32Array(0),
  41. "transitions": PackedFloat32Array(1),
  42. "update": 1,
  43. "values": ["QUITTING GAME..."]
  44. }
  45. tracks/1/type = "value"
  46. tracks/1/imported = false
  47. tracks/1/enabled = true
  48. tracks/1/path = NodePath("AudioStreamPlayer:playing")
  49. tracks/1/interp = 1
  50. tracks/1/loop_wrap = true
  51. tracks/1/keys = {
  52. "times": PackedFloat32Array(0),
  53. "transitions": PackedFloat32Array(1),
  54. "update": 1,
  55. "values": [false]
  56. }
  57. [sub_resource type="AnimationLibrary" id="AnimationLibrary_fbj8r"]
  58. _data = {
  59. &"Animation": SubResource("Animation_yapnp"),
  60. &"RESET": SubResource("Animation_kfsue")
  61. }
  62. [node name="QuitDialog" type="Control"]
  63. layout_mode = 3
  64. anchors_preset = 15
  65. anchor_right = 1.0
  66. anchor_bottom = 1.0
  67. grow_horizontal = 2
  68. grow_vertical = 2
  69. script = ExtResource("1_w3irg")
  70. [node name="ColorRect" type="ColorRect" parent="."]
  71. layout_mode = 1
  72. anchors_preset = 15
  73. anchor_right = 1.0
  74. anchor_bottom = 1.0
  75. grow_horizontal = 2
  76. grow_vertical = 2
  77. color = Color(0, 0, 0, 0.5)
  78. [node name="Label" type="Label" parent="."]
  79. layout_mode = 1
  80. anchors_preset = 8
  81. anchor_left = 0.5
  82. anchor_top = 0.5
  83. anchor_right = 0.5
  84. anchor_bottom = 0.5
  85. offset_left = -68.0
  86. offset_top = -8.0
  87. offset_right = 68.0
  88. offset_bottom = 8.0
  89. grow_horizontal = 2
  90. grow_vertical = 2
  91. theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
  92. text = "QUITTING GAME..."
  93. [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
  94. libraries = {
  95. &"": SubResource("AnimationLibrary_fbj8r")
  96. }
  97. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  98. stream = ExtResource("2_yapnp")