checheche/Robo-Bus-A31-HMI/common/gui/value_pop_up.tscn
2024-12-06 21:22:11 +08:00

105 lines
2.7 KiB
Plaintext

[gd_scene load_steps=6 format=3 uid="uid://dspq5diexdacx"]
[ext_resource type="FontFile" uid="uid://dxcbmhf5trgou" path="res://font/BoutiqueBitmap9x9_1.6.ttf" id="1_8ovy4"]
[ext_resource type="Script" path="res://common/gui/value_pop_up.gd" id="2_p13cl"]
[sub_resource type="Animation" id="Animation_scwk7"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_f1prc"]
resource_name = "new_animation"
length = 0.7
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Label:position")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.3, 0.7),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(23, -44), Vector2(60, 33)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Label:modulate")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.3, 0.7),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/2/type = "method"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath(".")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0.7),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"queue_free"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3vrpg"]
_data = {
"RESET": SubResource("Animation_scwk7"),
"new_animation": SubResource("Animation_f1prc")
}
[node name="Label" type="Control"]
z_index = 200
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 23.0
script = ExtResource("2_p13cl")
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_right = 60.0
offset_bottom = 33.0
theme_override_fonts/font = ExtResource("1_8ovy4")
theme_override_font_sizes/font_size = 30
text = "闪避"
horizontal_alignment = 1
vertical_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_3vrpg")
}
autoplay = "new_animation"
speed_scale = 0.75