2024-05-15 13:44:54 +08:00
|
|
|
[gd_scene load_steps=18 format=3 uid="uid://b41ml6vpfik6v"]
|
2024-04-15 14:54:06 +08:00
|
|
|
|
2024-04-19 15:29:33 +08:00
|
|
|
[ext_resource type="Script" path="res://UI/LCB/lcb.gd" id="1_x2nee"]
|
2024-04-19 15:46:44 +08:00
|
|
|
[ext_resource type="Theme" uid="uid://dn8j4j5ct40v6" path="res://lcb_text.tres" id="2_pno1b"]
|
2024-04-16 17:00:05 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cmej8kbdhxqss" path="res://Assets/LCB旋钮孔.png" id="3_g3cqx"]
|
2024-04-28 18:03:50 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b71j1cvmaukrv" path="res://Assets/LCB旋钮.png" id="4_i7jy7"]
|
2024-04-16 17:00:05 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="5_l3h46"]
|
2024-04-19 15:29:33 +08:00
|
|
|
[ext_resource type="Script" path="res://UI/LCB/LCB_Right_Rotate.gd" id="6_bg24u"]
|
|
|
|
[ext_resource type="Script" path="res://UI/LCB/LCB_Left_Rotate.gd" id="7_g7j6c"]
|
2024-04-28 15:51:51 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cpmlwpev7rvbp" path="res://Assets/打开钥匙面板钥匙.png" id="8_12p4y"]
|
2024-05-15 13:44:54 +08:00
|
|
|
[ext_resource type="AudioStream" uid="uid://cjl26xclgx7jk" path="res://Assets/music/转动钥匙.MP3" id="9_3w5im"]
|
2024-04-16 09:46:51 +08:00
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_1u8bl"]
|
|
|
|
resource_name = "AutoToClose"
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2024-04-16 09:46:51 +08:00
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
2024-04-15 14:54:06 +08:00
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [0.0, 1.02974]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_oy6oj"]
|
|
|
|
resource_name = "AutoToIsolate"
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [0.0, -1.08385]
|
|
|
|
}
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[sub_resource type="Animation" id="Animation_iu7hg"]
|
|
|
|
resource_name = "CloseToAuto"
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [1.02974, 0.0]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[sub_resource type="Animation" id="Animation_fclj5"]
|
|
|
|
resource_name = "CloseToOpen"
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [1.02974, 1.5708]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[sub_resource type="Animation" id="Animation_reqkf"]
|
|
|
|
resource_name = "IsolateToAuto"
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [-1.08385, 0.0]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[sub_resource type="Animation" id="Animation_1fl63"]
|
|
|
|
resource_name = "OpenToClose"
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 1),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [1.5708, 1.02974]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[sub_resource type="Animation" id="Animation_2ob00"]
|
|
|
|
length = 0.001
|
2024-04-15 14:54:06 +08:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TextureRect2:rotation")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2024-04-16 09:46:51 +08:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2024-04-15 14:54:06 +08:00
|
|
|
"update": 0,
|
2024-04-16 09:46:51 +08:00
|
|
|
"values": [0.0]
|
2024-04-15 14:54:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_nflv5"]
|
|
|
|
_data = {
|
|
|
|
"AutoToClose": SubResource("Animation_1u8bl"),
|
|
|
|
"AutoToIsolate": SubResource("Animation_oy6oj"),
|
2024-04-16 09:46:51 +08:00
|
|
|
"CloseToAuto": SubResource("Animation_iu7hg"),
|
2024-04-15 14:54:06 +08:00
|
|
|
"CloseToOpen": SubResource("Animation_fclj5"),
|
|
|
|
"IsolateToAuto": SubResource("Animation_reqkf"),
|
|
|
|
"OpenToClose": SubResource("Animation_1fl63"),
|
|
|
|
"RESET": SubResource("Animation_2ob00")
|
|
|
|
}
|
|
|
|
|
2024-04-19 15:29:33 +08:00
|
|
|
[node name="LCB" type="Window"]
|
2024-04-19 15:46:44 +08:00
|
|
|
title = "LCB"
|
2024-04-15 14:54:06 +08:00
|
|
|
position = Vector2i(0, 36)
|
|
|
|
size = Vector2i(400, 400)
|
2024-04-16 17:00:05 +08:00
|
|
|
script = ExtResource("1_x2nee")
|
2024-04-15 14:54:06 +08:00
|
|
|
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="."]
|
|
|
|
offset_right = 400.0
|
|
|
|
offset_bottom = 400.0
|
2024-04-19 15:46:44 +08:00
|
|
|
theme = ExtResource("2_pno1b")
|
2024-04-15 14:54:06 +08:00
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="PanelContainer/VBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 6
|
2024-04-16 17:00:05 +08:00
|
|
|
texture = ExtResource("3_g3cqx")
|
2024-04-15 14:54:06 +08:00
|
|
|
stretch_mode = 5
|
|
|
|
|
|
|
|
[node name="TextureRect2" type="TextureRect" parent="."]
|
2024-04-28 18:03:50 +08:00
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -25.0
|
|
|
|
offset_top = -50.0
|
|
|
|
offset_right = 25.0
|
|
|
|
offset_bottom = 52.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
pivot_offset = Vector2(25, 51)
|
2024-04-16 17:00:05 +08:00
|
|
|
texture = ExtResource("4_i7jy7")
|
2024-04-15 14:54:06 +08:00
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
|
|
offset_left = 96.0
|
|
|
|
offset_top = 147.0
|
|
|
|
offset_right = 496.0
|
|
|
|
offset_bottom = 170.0
|
2024-04-19 15:46:44 +08:00
|
|
|
theme = ExtResource("2_pno1b")
|
2024-04-15 14:54:06 +08:00
|
|
|
text = "隔离"
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="."]
|
|
|
|
offset_left = 179.0
|
|
|
|
offset_top = 93.0
|
|
|
|
offset_right = 579.0
|
|
|
|
offset_bottom = 116.0
|
2024-04-19 15:46:44 +08:00
|
|
|
theme = ExtResource("2_pno1b")
|
2024-04-15 14:54:06 +08:00
|
|
|
text = "自动"
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="."]
|
|
|
|
clip_contents = true
|
|
|
|
offset_left = 278.0
|
|
|
|
offset_top = 186.0
|
|
|
|
offset_right = 678.0
|
|
|
|
offset_bottom = 209.0
|
2024-04-19 15:46:44 +08:00
|
|
|
theme = ExtResource("2_pno1b")
|
2024-04-15 14:54:06 +08:00
|
|
|
text = "开门"
|
|
|
|
|
|
|
|
[node name="Label4" type="Label" parent="."]
|
|
|
|
offset_left = 262.0
|
|
|
|
offset_top = 134.0
|
|
|
|
offset_right = 662.0
|
|
|
|
offset_bottom = 157.0
|
2024-04-19 15:46:44 +08:00
|
|
|
theme = ExtResource("2_pno1b")
|
2024-04-15 14:54:06 +08:00
|
|
|
text = "关门"
|
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[node name="LCB2_Right_Rotate" type="Sprite2D" parent="."]
|
|
|
|
modulate = Color(0, 1, 1, 1)
|
|
|
|
position = Vector2(241, 140)
|
2024-04-15 14:54:06 +08:00
|
|
|
rotation = 0.968658
|
2024-04-16 09:46:51 +08:00
|
|
|
scale = Vector2(0.23, 0.23)
|
2024-04-16 17:00:05 +08:00
|
|
|
texture = ExtResource("5_l3h46")
|
|
|
|
script = ExtResource("6_bg24u")
|
2024-04-15 14:54:06 +08:00
|
|
|
|
2024-04-16 09:46:51 +08:00
|
|
|
[node name="LCB2_Left_Rotate" type="Sprite2D" parent="."]
|
|
|
|
position = Vector2(154, 140)
|
2024-04-15 14:54:06 +08:00
|
|
|
rotation = -0.961676
|
2024-04-16 09:46:51 +08:00
|
|
|
scale = Vector2(0.23, 0.23)
|
2024-04-16 17:00:05 +08:00
|
|
|
texture = ExtResource("5_l3h46")
|
2024-04-15 14:54:06 +08:00
|
|
|
flip_h = true
|
2024-04-16 17:00:05 +08:00
|
|
|
script = ExtResource("7_g7j6c")
|
2024-04-15 14:54:06 +08:00
|
|
|
|
|
|
|
[node name="LCBRotateAnimation" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_nflv5")
|
|
|
|
}
|
2024-04-28 15:51:51 +08:00
|
|
|
|
|
|
|
[node name="openKeyWindow" type="TextureRect" parent="."]
|
|
|
|
offset_left = 350.0
|
|
|
|
offset_top = 50.0
|
|
|
|
offset_right = 418.0
|
|
|
|
offset_bottom = 200.0
|
|
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
texture = ExtResource("8_12p4y")
|
|
|
|
|
2024-05-15 13:44:54 +08:00
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
|
|
stream = ExtResource("9_3w5im")
|
|
|
|
|
2024-04-28 15:51:51 +08:00
|
|
|
[connection signal="gui_input" from="TextureRect2" to="." method="_on_texture_rect_2_gui_input"]
|
|
|
|
[connection signal="mouse_entered" from="TextureRect2" to="." method="_on_texture_rect_2_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="TextureRect2" to="." method="_on_texture_rect_2_mouse_exited"]
|
|
|
|
[connection signal="gui_input" from="openKeyWindow" to="." method="_on_open_key_window_gui_input"]
|
|
|
|
[connection signal="mouse_entered" from="openKeyWindow" to="." method="_on_open_key_window_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="openKeyWindow" to="." method="_on_open_key_window_mouse_exited"]
|