1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- [gd_scene load_steps=6 format=3 uid="uid://g4e2cyrofo76"]
- [ext_resource type="Script" uid="uid://c1ms1bgcsi83v" path="res://Scripts/transition_screen.gd" id="1"]
- [sub_resource type="Animation" id="Animation_203op"]
- length = 0.001
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("ColorRect:color")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0),
- "transitions": PackedFloat32Array(1),
- "update": 0,
- "values": [Color(0, 0, 0, 1)]
- }
- [sub_resource type="Animation" id="Animation_w6gkv"]
- resource_name = "fade_from_black"
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("ColorRect:color")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 1),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
- }
- [sub_resource type="Animation" id="Animation_8o11d"]
- resource_name = "fade_to_black"
- length = 0.5
- tracks/0/type = "value"
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/path = NodePath("ColorRect:color")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/keys = {
- "times": PackedFloat32Array(0, 0.5),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
- }
- [sub_resource type="AnimationLibrary" id="AnimationLibrary_cgxjx"]
- _data = {
- &"RESET": SubResource("Animation_203op"),
- &"fade_from_black": SubResource("Animation_w6gkv"),
- &"fade_to_black": SubResource("Animation_8o11d")
- }
- [node name="TransitionScreen" type="CanvasLayer"]
- process_mode = 3
- script = ExtResource("1")
- [node name="ColorRect" type="ColorRect" parent="."]
- z_index = 1000
- anchors_preset = 15
- anchor_right = 1.0
- anchor_bottom = 1.0
- grow_horizontal = 2
- grow_vertical = 2
- mouse_filter = 2
- color = Color(0, 0, 0, 1)
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- libraries = {
- "": SubResource("AnimationLibrary_cgxjx")
- }
- [connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
|