Changed the way the fades work, and brought back in the Player
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dvt585i7m0286"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/tools/between2.gd" id="1_o5ti7"]
|
||||
[ext_resource type="Script" path="res://scripts/Splash.gd" id="1_tnoah"]
|
||||
[ext_resource type="PackedScene" uid="uid://bc3i3udumnh3r" path="res://scenes/Main.tscn" id="2_dq85p"]
|
||||
[ext_resource type="Texture2D" uid="uid://cihjayxr028j3" path="res://icon.svg" id="2_fpfqa"]
|
||||
[ext_resource type="PackedScene" uid="uid://dfqspackuotur" path="res://scenes/ui/fade.tscn" id="4_hn3xu"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_sdvqp"]
|
||||
length = 0.001
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Logo:weight")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0),
|
||||
"points": PackedFloat32Array(0.5, -0.25, 0, 0.25, 0),
|
||||
"times": PackedFloat32Array(0)
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Black:color")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_2v5v3"]
|
||||
resource_name = "animation"
|
||||
length = 3.0
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Logo:weight")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"handle_modes": PackedInt32Array(0, 0, 0, 0),
|
||||
"points": PackedFloat32Array(0, -0.25, 0, 0.0947368, 0.323529, 0.5, -0.366629, 0.00130719, 0.25, 0, 0.5, -0.25, 0, 0.25, 0, 1, -0.105263, -0.344444, 0.25, 0),
|
||||
"times": PackedFloat32Array(0.5, 1, 2, 2.5)
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Black:color")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5, 2.5, 3),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0), Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_sansa"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_sdvqp"),
|
||||
"animation": SubResource("Animation_2v5v3")
|
||||
}
|
||||
|
||||
[node name="Main" type="CanvasLayer"]
|
||||
follow_viewport_enabled = true
|
||||
script = ExtResource("1_tnoah")
|
||||
res = ExtResource("2_dq85p")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="in" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 4
|
||||
anchor_top = 0.5
|
||||
anchor_bottom = 0.5
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="out" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 6
|
||||
anchor_left = 1.0
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Logo" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
rotation = -6.28318
|
||||
script = ExtResource("1_o5ti7")
|
||||
weight = 0.5
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Logo"]
|
||||
layout_mode = 0
|
||||
offset_left = -96.0
|
||||
offset_top = -96.0
|
||||
offset_right = 96.0
|
||||
offset_bottom = 96.0
|
||||
texture = ExtResource("2_fpfqa")
|
||||
|
||||
[node name="Black" parent="." instance=ExtResource("4_hn3xu")]
|
||||
script = null
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_sansa")
|
||||
}
|
||||
autoplay = "animation"
|
||||
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dfqspackuotur"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/tools/fade.gd" id="1_i8eyl"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7acmb"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".: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, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_iqj70"]
|
||||
resource_name = "fade_in"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(),
|
||||
"transitions": PackedFloat32Array(),
|
||||
"values": []
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_x5jw3"]
|
||||
resource_name = "fade_out"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 1),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ejj8p"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_7acmb"),
|
||||
"fade_in": SubResource("Animation_iqj70"),
|
||||
"fade_out": SubResource("Animation_x5jw3")
|
||||
}
|
||||
|
||||
[node name="Black" type="ColorRect"]
|
||||
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)
|
||||
script = ExtResource("1_i8eyl")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ejj8p")
|
||||
}
|
||||
Reference in New Issue
Block a user