-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFloatingLabel.tscn
68 lines (62 loc) · 1.66 KB
/
FloatingLabel.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
[gd_scene load_steps=5 format=3 uid="uid://d07v1cjxpikv4"]
[ext_resource type="Script" path="res://Scripts/FloatingLabel.cs" id="1_fg7tx"]
[sub_resource type="Animation" id="Animation_q32fe"]
resource_name = "Float"
length = 0.6
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.6),
"transitions": PackedFloat32Array(0.31864, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(0, -20)]
}
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(0.6),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"Destroy"
}]
}
[sub_resource type="Animation" id="Animation_2now0"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, -20)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7i5vo"]
_data = {
"FloatUpward": SubResource("Animation_q32fe"),
"RESET": SubResource("Animation_2now0")
}
[node name="Label" type="Label"]
offset_top = -20.0
offset_right = 52.0
offset_bottom = 15.0
scale = Vector2(0.6, 0.6)
theme_override_font_sizes/font_size = 25
text = "Text"
script = ExtResource("1_fg7tx")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_7i5vo")
}