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

198 lines
5.1 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://c0xhivfwh6wvi"]
[ext_resource type="Script" path="res://common/base/base_control.gd" id="1_si3or"]
[ext_resource type="Script" path="res://common/gui/details.gd" id="1_wbsu2"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_q81ks"]
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
[sub_resource type="Animation" id="Animation_fi1qr"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("details:size")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(150, 200)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("details:custom_minimum_size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(150, 200)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("details:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_rydsk"]
resource_name = "end"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("details: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(0.9, 1),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"end"
}, {
"args": [],
"method": &"queue_free"
}]
}
[sub_resource type="Animation" id="Animation_76htc"]
resource_name = "start"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("details:size")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(150, 200)]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("details:custom_minimum_size")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Vector2(0, 0), Vector2(150, 200)]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("details:modulate")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/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_d50ln"]
_data = {
"RESET": SubResource("Animation_fi1qr"),
"end": SubResource("Animation_rydsk"),
"start": SubResource("Animation_76htc")
}
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
script = ExtResource("1_wbsu2")
[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.615686)
script = ExtResource("1_si3or")
[node name="details" type="MarginContainer" parent="."]
custom_minimum_size = Vector2(150, 200)
layout_mode = 0
offset_right = 150.0
offset_bottom = 200.0
pivot_offset = Vector2(75, 100)
size_flags_horizontal = 0
mouse_filter = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
script = ExtResource("1_si3or")
styleBox = SubResource("StyleBoxFlat_q81ks")
[node name="VBoxContainer" type="VBoxContainer" parent="details"]
layout_mode = 2
[node name="RichTextLabel" type="RichTextLabel" parent="details/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
mouse_filter = 1
bbcode_enabled = true
text = "adas
dasdad"
[node name="Button" type="Button" parent="details/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "装备"
[node name="Button2" type="Button" parent="details/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "丢弃"
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_d50ln")
}
autoplay = "start"
speed_scale = 10.0
[connection signal="on_click" from="ColorRect" to="." method="_on_color_rect_on_click"]
[connection signal="pressed" from="details/VBoxContainer/Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="details/VBoxContainer/Button2" to="." method="_on_button_2_pressed"]