mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
06c2637ebb
- 新增MessageType枚举定义提示类型(INFO/WARNING/ERROR) - 根据不同类型显示不同颜色样式 - 修改所有调用showTip的地方使用新的类型参数 - 移除自动销毁时间参数,统一使用固定显示时长
129 lines
3.4 KiB
Plaintext
129 lines
3.4 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://caogpc2fnlrin"]
|
|
|
|
[ext_resource type="Script" uid="uid://c1gqcwr6say6f" path="res://scripts/Statemachine/TipBox.gd" id="1_7vuk3"]
|
|
[ext_resource type="Theme" uid="uid://bje5cd08dyok7" path="res://themes/bigTextAndBold.tres" id="2_5pngc"]
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5pngc"]
|
|
content_margin_left = 10.0
|
|
content_margin_top = 5.0
|
|
content_margin_right = 10.0
|
|
content_margin_bottom = 5.0
|
|
bg_color = Color(0, 0, 1, 1)
|
|
corner_radius_top_right = 100
|
|
corner_radius_bottom_right = 100
|
|
|
|
[sub_resource type="Animation" id="Animation_7vuk3"]
|
|
length = 0.001
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0),
|
|
"points": PackedFloat32Array(1, -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(".: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_5pngc"]
|
|
resource_name = "show"
|
|
length = 0.3
|
|
step = 0.01
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
"points": PackedFloat32Array(1.0039918, 0, 0, 0.3, 1.5, 0, 0, 0.205, 0, 0),
|
|
"times": PackedFloat32Array(0, 0.3)
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.21, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7ishl"]
|
|
resource_name = "show"
|
|
length = 0.3
|
|
step = 0.1
|
|
tracks/0/type = "bezier"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale:x")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
"points": PackedFloat32Array(0, 0, 0, 0, 0, 1, -0.2, 1, 0, 0),
|
|
"times": PackedFloat32Array(0, 0.3)
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_uks01"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_7vuk3"),
|
|
&"hide": SubResource("Animation_5pngc"),
|
|
&"show": SubResource("Animation_7ishl")
|
|
}
|
|
|
|
[node name="TipBox" type="PanelContainer"]
|
|
offset_right = 79.0
|
|
offset_bottom = 34.0
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_5pngc")
|
|
script = ExtResource("1_7vuk3")
|
|
colorMap = {
|
|
0: Color(0, 0.5265789, 1, 1),
|
|
1: Color(1, 0.48120707, 0, 1),
|
|
2: Color(1, 0, 0, 1)
|
|
}
|
|
|
|
[node name="label" type="RichTextLabel" parent="."]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
theme = ExtResource("2_5pngc")
|
|
bbcode_enabled = true
|
|
text = "nothing"
|
|
fit_content = true
|
|
autowrap_mode = 0
|
|
|
|
[node name="animator" type="AnimationPlayer" parent="."]
|
|
unique_name_in_owner = true
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_uks01")
|
|
}
|