2024-05-15 13:44:54 +08:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://ur86pfy4w0so"]
|
2024-04-19 17:48:20 +08:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://UI/psl/key_switch.gd" id="1_dkl8d"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://7aq7b45v8ubb" path="res://Assets/psl/按钮背景.png" id="1_ft2a2"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://lr1gcgtutatw" path="res://Assets/psl/指示灯_红.png" id="3_d617q"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bw10gny5v6s5m" path="res://Assets/psl/指示灯亮_红.png" id="4_hp6yx"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ba8byksb7lxhd" path="res://Assets/psl/钥匙孔.png" id="5_7s053"]
|
2024-04-29 11:03:01 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://dyemyrw74u47v" path="res://Assets/psl/钥匙.png" id="5_ptmia"]
|
2024-04-19 17:48:20 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b7j3msd4bw0im" path="res://Assets/LCB_Arrow.svg" id="6_s6bbn"]
|
|
|
|
[ext_resource type="Script" path="res://UI/psl/key_right_rotate.gd" id="8_sbs8q"]
|
2024-05-15 13:44:54 +08:00
|
|
|
[ext_resource type="AudioStream" uid="uid://cjl26xclgx7jk" path="res://Assets/music/转动钥匙.MP3" id="9_8cbnr"]
|
2024-04-19 17:48:20 +08:00
|
|
|
|
|
|
|
[node name="KeySwitch" type="VBoxContainer"]
|
|
|
|
script = ExtResource("1_dkl8d")
|
|
|
|
|
|
|
|
[node name="Light" type="TextureRect" parent="."]
|
|
|
|
layout_mode = 2
|
|
|
|
focus_mode = 2
|
|
|
|
texture = ExtResource("1_ft2a2")
|
|
|
|
|
|
|
|
[node name="closeLight" type="Sprite2D" parent="Light"]
|
|
|
|
position = Vector2(64, 119)
|
|
|
|
scale = Vector2(0.8, 0.8)
|
|
|
|
texture = ExtResource("3_d617q")
|
|
|
|
|
|
|
|
[node name="openLight" type="Sprite2D" parent="Light"]
|
|
|
|
visible = false
|
|
|
|
position = Vector2(64, 119)
|
|
|
|
scale = Vector2(0.8, 0.8)
|
|
|
|
texture = ExtResource("4_hp6yx")
|
|
|
|
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Light"]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_right = 104.0
|
|
|
|
offset_bottom = 110.0
|
|
|
|
theme_override_constants/margin_left = 24
|
|
|
|
theme_override_constants/margin_top = -38
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Light/MarginContainer"]
|
|
|
|
modulate = Color(0.00392157, 0, 0, 1)
|
|
|
|
custom_minimum_size = Vector2(80, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_font_sizes/font_size = 18
|
|
|
|
text = "灯"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
autowrap_mode = 2
|
|
|
|
|
|
|
|
[node name="Key" type="TextureRect" parent="."]
|
|
|
|
layout_mode = 2
|
|
|
|
focus_mode = 2
|
|
|
|
texture = ExtResource("1_ft2a2")
|
|
|
|
|
|
|
|
[node name="Keyhole" type="Sprite2D" parent="Key"]
|
|
|
|
position = Vector2(62, 119)
|
|
|
|
rotation = -0.523599
|
|
|
|
scale = Vector2(0.8, 0.8)
|
|
|
|
texture = ExtResource("5_7s053")
|
|
|
|
|
2024-04-29 11:03:01 +08:00
|
|
|
[node name="Key" type="TextureRect" parent="Key"]
|
2024-04-22 15:32:19 +08:00
|
|
|
visible = false
|
2024-04-29 11:03:01 +08:00
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 39.0
|
|
|
|
offset_top = 68.0
|
|
|
|
offset_right = 89.0
|
|
|
|
offset_bottom = 170.0
|
2024-04-19 17:48:20 +08:00
|
|
|
rotation = -0.523599
|
2024-04-29 11:03:01 +08:00
|
|
|
scale = Vector2(0.72, 0.72)
|
|
|
|
pivot_offset = Vector2(25, 51)
|
2024-04-19 17:48:20 +08:00
|
|
|
texture = ExtResource("5_ptmia")
|
|
|
|
|
|
|
|
[node name="Right_Rotate" type="Sprite2D" parent="Key"]
|
2024-04-22 15:32:19 +08:00
|
|
|
visible = false
|
2024-04-19 17:48:20 +08:00
|
|
|
modulate = Color(0, 1, 1, 1)
|
|
|
|
position = Vector2(118, 97)
|
|
|
|
rotation = 1.1781
|
|
|
|
scale = Vector2(0.2, 0.2)
|
|
|
|
texture = ExtResource("6_s6bbn")
|
|
|
|
script = ExtResource("8_sbs8q")
|
|
|
|
|
2024-05-15 13:44:54 +08:00
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Key"]
|
|
|
|
stream = ExtResource("9_8cbnr")
|
|
|
|
|
2024-04-19 17:48:20 +08:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Key"]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_right = 104.0
|
|
|
|
offset_bottom = 110.0
|
|
|
|
theme_override_constants/margin_left = 24
|
|
|
|
theme_override_constants/margin_top = -38
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="Key/MarginContainer"]
|
|
|
|
modulate = Color(0.00392157, 0, 0, 1)
|
|
|
|
custom_minimum_size = Vector2(80, 0)
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_font_sizes/font_size = 18
|
|
|
|
text = "钥匙"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
autowrap_mode = 2
|
2024-04-29 11:03:01 +08:00
|
|
|
|
|
|
|
[connection signal="gui_input" from="Key/Key" to="." method="_on_key_gui_input"]
|
|
|
|
[connection signal="mouse_entered" from="Key/Key" to="." method="_on_key_mouse_entered"]
|
|
|
|
[connection signal="mouse_exited" from="Key/Key" to="." method="_on_key_mouse_exited"]
|