59 lines
1.5 KiB
Plaintext
59 lines
1.5 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://cjbbslcx6vjjy"]
|
|
|
|
[ext_resource type="Script" uid="uid://b08q3lqbuoolb" path="res://scripts/autoloads/nodes/event_manager.gd" id="1_xplee"]
|
|
|
|
[sub_resource type="Animation" id="Animation_xplee"]
|
|
resource_name = "transition"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ColorRect:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(0.5, 0.5),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_swnhv"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("ColorRect:self_modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gml0k"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_swnhv"),
|
|
&"transition": SubResource("Animation_xplee")
|
|
}
|
|
|
|
[node name="EventManager" type="CanvasLayer"]
|
|
script = ExtResource("1_xplee")
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
self_modulate = Color(1, 1, 1, 0)
|
|
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_gml0k")
|
|
}
|