-
Notifications
You must be signed in to change notification settings - Fork 0
/
ShuttingDown.tscn
54 lines (39 loc) · 1.51 KB
/
ShuttingDown.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[gd_scene load_steps=6 format=2]
[ext_resource path="res://data/media/gui/shutting_down.png" type="Texture" id=1]
[ext_resource path="res://data/media/gui/saving_your_settings.png" type="Texture" id=2]
[ext_resource path="res://data/media/Windows XP Shutdown.wav" type="AudioStream" id=3]
[sub_resource type="GDScript" id=2]
script/source = "#/*************************************************************************/#
#/* Created by Andrew Poženel, 2022 */#
#/*************************************************************************/#
extends Control
func _on_AnimatedSprite_animation_finished() -> void:
$Timer.start()
func _on_Timer_timeout() -> void:
get_tree().quit()
"
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 1 ) ],
"loop": false,
"name": "default",
"speed": 0.2
} ]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
scale = Vector2( 2.25, 2.25 )
frames = SubResource( 1 )
frame = 1
playing = true
centered = false
[node name="Timer" type="Timer" parent="."]
wait_time = 3.5
one_shot = true
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 3 )
autoplay = true
[connection signal="animation_finished" from="AnimatedSprite" to="." method="_on_AnimatedSprite_animation_finished" flags=7]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout" flags=7]