[gd_scene load_steps=6 format=2]

[ext_resource path="res://src/Main/PauseMenu.gd" type="Script" id=1]
[ext_resource path="res://assets/theme/fonts/TitleCardFont.tres" type="DynamicFont" id=3]
[ext_resource path="res://src/Main/BlackBorders.tscn" type="PackedScene" id=5]

[sub_resource type="Animation" id=1]
resource_name = "MoveIn"
length = 0.4
step = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("BordersLeftHalf:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( -160, 0 ), Vector2( 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("BordersRight:rect_position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 160, 0 ), Vector2( 0, 0 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("VBoxContainer:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}

[sub_resource type="Animation" id=2]
resource_name = "MoveOut"
length = 0.4
step = 0.2
tracks/0/type = "value"
tracks/0/path = NodePath("BordersLeftHalf:rect_position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( -160, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("BordersRight:rect_position")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 160, 0 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("VBoxContainer:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.4 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
}

[node name="PauseMenu" type="CanvasLayer"]
pause_mode = 2
script = ExtResource( 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
playback_speed = 2.0
anims/MoveIn = SubResource( 1 )
anims/MoveOut = SubResource( 2 )

[node name="VBoxContainer" type="VBoxContainer" parent="."]
modulate = Color( 1, 1, 1, 0 )
margin_right = 320.0
margin_bottom = 240.0
__meta__ = {
"_edit_use_anchors_": false
}

[node name="GamePaused" type="Label" parent="VBoxContainer"]
margin_top = 111.0
margin_right = 320.0
margin_bottom = 128.0
size_flags_vertical = 6
custom_fonts/font = ExtResource( 3 )
text = "Game paused"
align = 1

[node name="BordersLeftHalf" parent="." instance=ExtResource( 5 )]
margin_left = -160.0
margin_right = 160.0

[node name="ColorRect2" parent="BordersLeftHalf" index="0"]
margin_right = 160.0

[node name="ColorRect3" parent="BordersLeftHalf" index="1"]
margin_right = 160.0

[node name="BordersRight" parent="." instance=ExtResource( 5 )]
margin_left = 160.0
margin_right = 480.0

[node name="ColorRect2" parent="BordersRight" index="0"]
margin_left = 160.0

[node name="ColorRect3" parent="BordersRight" index="1"]
margin_left = 160.0
[connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"]

[editable path="BordersLeftHalf"]

[editable path="BordersRight"]
