[gd_scene load_steps=5 format=2]

[ext_resource path="res://assets/meta/ui_theme.tres" type="Theme" id=1]
[ext_resource path="res://src/UserInterface/Screens/HUD.gd" type="Script" id=5]

[sub_resource type="Animation" id=1]
length = 0.001
tracks/0/type = "value"
tracks/0/path = NodePath("..:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 0,
"values": [ Color( 0, 0, 0, 0 ) ]
}

[sub_resource type="Animation" id=2]
resource_name = "Redlight"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("..:color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 0.423529, 0, 0, 0.160784 ), Color( 0, 0, 0, 0 ) ]
}

[node name="HUD" type="Control"]
pause_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
theme = ExtResource( 1 )
script = ExtResource( 5 )

[node name="HUDOverlay" type="ColorRect" parent="."]
unique_name_in_owner = true
anchor_left = 0.5
anchor_right = 0.5
margin_left = -320.0
margin_right = 320.0
margin_bottom = 360.0
color = Color( 0, 0, 0, 0 )

[node name="Score" type="Label" parent="HUDOverlay"]
unique_name_in_owner = true
anchor_left = 1.0
anchor_right = 1.0
margin_left = -96.0001
rect_scale = Vector2( 0.590909, 0.627907 )
text = "Score: 100000000000000000"
align = 2

[node name="GetBackTimer" type="Label" parent="HUDOverlay"]
unique_name_in_owner = true
visible = false
anchor_left = 0.5
anchor_right = 0.5
margin_left = -9.0
margin_right = 9.0
margin_bottom = 14.0
rect_scale = Vector2( 5, 5 )
text = "100"
align = 2

[node name="Timer" type="Timer" parent="HUDOverlay/GetBackTimer"]
wait_time = 100.0
one_shot = true

[node name="AnimationPlayer" type="AnimationPlayer" parent="HUDOverlay/GetBackTimer"]
anims/RESET = SubResource( 1 )
anims/Redlight = SubResource( 2 )
