This commit is contained in:
2025-01-18 15:45:09 +01:00
parent f1bfb48fcf
commit 114e09172f
6 changed files with 94 additions and 7 deletions

71
scene/display_song.tscn Normal file
View File

@@ -0,0 +1,71 @@
[gd_scene load_steps=6 format=3 uid="uid://bi1sl1tcpssyd"]
[ext_resource type="Script" path="res://script/display_song.gd" id="1_el3j1"]
[ext_resource type="Theme" uid="uid://dwtios6w33wxq" path="res://theme/label_theme.tres" id="2_p16cs"]
[sub_resource type="Animation" id="Animation_2j0q6"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Control: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="Animation" id="Animation_a1cki"]
resource_name = "alphapasla"
length = 6.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Control:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.966667, 5, 6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_86fsc"]
_data = {
"RESET": SubResource("Animation_2j0q6"),
"alphapasla": SubResource("Animation_a1cki")
}
[node name="display_song" type="CanvasLayer" node_paths=PackedStringArray("label", "anim")]
script = ExtResource("1_el3j1")
label = NodePath("Control/Label")
anim = NodePath("AnimationPlayer")
[node name="Control" type="Control" parent="."]
modulate = Color(1, 1, 1, 0)
layout_mode = 3
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
grow_vertical = 0
[node name="Label" type="Label" parent="Control"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -23.0
offset_right = 80.0
grow_vertical = 0
theme = ExtResource("2_p16cs")
theme_override_font_sizes/font_size = 90
text = "qwrertuiioyo"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_86fsc")
}