2024-05-06 17:28:42 +08:00
|
|
|
[gd_scene load_steps=9 format=3 uid="uid://dppmr7ifqt8oa"]
|
2024-04-19 17:48:20 +08:00
|
|
|
|
|
|
|
[ext_resource type="Theme" uid="uid://bycedcl2nwwlu" path="res://ui_theme.tres" id="1_oaabl"]
|
|
|
|
[ext_resource type="FontFile" uid="uid://bkbpyidjguavf" path="res://Assets/FeiHuaSongTi-2.ttf" id="2_xva5j"]
|
|
|
|
[ext_resource type="Script" path="res://UI/psl/psl_window.gd" id="3_xodem"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://dkohhsnyl7dq8" path="res://Assets/psl/psl背景大.png" id="4_cpydh"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://ur86pfy4w0so" path="res://UI/psl/key_switch.tscn" id="6_8mvyb"]
|
2024-05-06 17:28:42 +08:00
|
|
|
[ext_resource type="PackedScene" uid="uid://p7uurq4exr6q" path="res://UI/psl/light_model.tscn" id="6_nn68f"]
|
2024-04-29 17:13:14 +08:00
|
|
|
[ext_resource type="Texture2D" uid="uid://cpmlwpev7rvbp" path="res://Assets/打开钥匙面板钥匙.png" id="7_643a1"]
|
2024-05-06 17:28:42 +08:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c31r8s27j4dcm" path="res://UI/psl/button_model.tscn" id="7_p8tve"]
|
2024-04-19 17:48:20 +08:00
|
|
|
|
|
|
|
[node name="psl" type="Window"]
|
|
|
|
title = "psl操作面板"
|
|
|
|
position = Vector2i(10, 36)
|
2024-04-29 17:13:14 +08:00
|
|
|
size = Vector2i(460, 720)
|
2024-04-19 17:48:20 +08:00
|
|
|
unresizable = true
|
|
|
|
transparent = true
|
|
|
|
theme = ExtResource("1_oaabl")
|
|
|
|
theme_override_fonts/title_font = ExtResource("2_xva5j")
|
|
|
|
script = ExtResource("3_xodem")
|
|
|
|
|
|
|
|
[node name="Pslll" type="Sprite2D" parent="."]
|
2024-04-29 17:13:14 +08:00
|
|
|
position = Vector2(220, 0)
|
|
|
|
scale = Vector2(0.43, 1.14)
|
2024-04-19 17:48:20 +08:00
|
|
|
texture = ExtResource("4_cpydh")
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
2024-04-29 17:13:14 +08:00
|
|
|
offset_left = 30.0
|
2024-04-19 17:48:20 +08:00
|
|
|
offset_top = 4.0
|
2024-04-29 17:13:14 +08:00
|
|
|
offset_right = 537.0
|
|
|
|
offset_bottom = 1529.0
|
2024-04-23 09:33:07 +08:00
|
|
|
scale = Vector2(0.7, 0.7)
|
|
|
|
theme_override_constants/margin_left = 45
|
2024-04-19 17:48:20 +08:00
|
|
|
theme_override_constants/margin_top = 35
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
columns = 3
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="PSLAllow" parent="MarginContainer/GridContainer" instance=ExtResource("6_8mvyb")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
keySwitchHasKey = true
|
|
|
|
lightText = "PSL允许指示灯"
|
|
|
|
keyText = "操作允许无效有效"
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MarginContainer/GridContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_override_constants/margin_left = 35
|
|
|
|
theme_override_constants/margin_right = 35
|
|
|
|
theme_override_constants/margin_bottom = 35
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer/MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="AllScreenDoorCloseLight" parent="MarginContainer/GridContainer/MarginContainer/VBoxContainer" instance=ExtResource("6_nn68f")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
lightText = "全部门关闭紧锁指"
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="CloseDoorButton" parent="MarginContainer/GridContainer/MarginContainer/VBoxContainer" instance=ExtResource("7_p8tve")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
2024-05-06 17:28:42 +08:00
|
|
|
buttonType = 1
|
|
|
|
buttonText = "关门按钮"
|
|
|
|
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="ScreenDoorOpenLight" parent="MarginContainer/GridContainer/VBoxContainer" instance=ExtResource("6_nn68f")]
|
|
|
|
layout_mode = 2
|
|
|
|
lightType = 1
|
2024-04-19 17:48:20 +08:00
|
|
|
lightText = "开门到位指示灯"
|
2024-05-06 17:28:42 +08:00
|
|
|
|
|
|
|
[node name="OpenDoorButton" parent="MarginContainer/GridContainer/VBoxContainer" instance=ExtResource("7_p8tve")]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
2024-04-19 17:48:20 +08:00
|
|
|
buttonText = "开门按钮"
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="InterlockReleaseSwitch" parent="MarginContainer/GridContainer" instance=ExtResource("6_8mvyb")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
keySwitchHasKey = true
|
|
|
|
lightText = "互锁解除指示灯"
|
|
|
|
keyText = "互锁解除开关"
|
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/GridContainer"]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
2024-04-23 09:33:07 +08:00
|
|
|
theme_override_constants/margin_bottom = 35
|
2024-04-19 17:48:20 +08:00
|
|
|
|
2024-04-23 09:33:07 +08:00
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer/MarginContainer2"]
|
|
|
|
layout_mode = 2
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="IBPHandleLight" parent="MarginContainer/GridContainer/MarginContainer2/VBoxContainer" instance=ExtResource("6_nn68f")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
2024-05-06 17:28:42 +08:00
|
|
|
size_flags_horizontal = 4
|
|
|
|
lightType = 1
|
2024-04-19 17:48:20 +08:00
|
|
|
lightText = "IBP操作指示灯"
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="LightTestButton" parent="MarginContainer/GridContainer/MarginContainer2/VBoxContainer" instance=ExtResource("7_p8tve")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
2024-05-06 17:28:42 +08:00
|
|
|
size_flags_horizontal = 4
|
|
|
|
buttonType = 2
|
2024-04-19 17:48:20 +08:00
|
|
|
buttonText = "灯测试按钮"
|
|
|
|
|
2024-05-07 16:33:38 +08:00
|
|
|
[node name="PSTHandle" parent="MarginContainer/GridContainer" instance=ExtResource("6_nn68f")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
2024-05-07 16:33:38 +08:00
|
|
|
lightType = 1
|
2024-04-19 17:48:20 +08:00
|
|
|
lightText = "PST操作指示灯"
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="trainDepartsButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
buttonText = "发车按钮"
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="interconnectedCloseButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
2024-04-23 09:33:07 +08:00
|
|
|
size_flags_horizontal = 6
|
2024-05-06 17:28:42 +08:00
|
|
|
buttonType = 1
|
2024-04-19 17:48:20 +08:00
|
|
|
buttonText = "联动关门按钮"
|
|
|
|
|
2024-05-06 17:28:42 +08:00
|
|
|
[node name="interconnectedOpenButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
|
2024-04-19 17:48:20 +08:00
|
|
|
layout_mode = 2
|
|
|
|
buttonText = "联动开门按钮"
|
|
|
|
|
2024-04-29 17:13:14 +08:00
|
|
|
[node name="openKeyWindow" type="TextureRect" parent="."]
|
|
|
|
offset_left = 405.0
|
|
|
|
offset_top = 50.0
|
|
|
|
offset_right = 473.0
|
|
|
|
offset_bottom = 200.0
|
|
|
|
scale = Vector2(0.64, 0.64)
|
|
|
|
texture = ExtResource("7_643a1")
|
|
|
|
|
2024-04-19 17:48:20 +08:00
|
|
|
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
|
2024-04-23 09:33:07 +08:00
|
|
|
[connection signal="clickKeySwitchSignal" from="MarginContainer/GridContainer/PSLAllow" to="." method="onHandleSignal"]
|
2024-04-29 11:03:01 +08:00
|
|
|
[connection signal="removeKey" from="MarginContainer/GridContainer/PSLAllow" to="." method="remove_key"]
|
2024-05-06 17:28:42 +08:00
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/MarginContainer/VBoxContainer/CloseDoorButton" to="." method="onHandleSignal"]
|
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/VBoxContainer/OpenDoorButton" to="." method="onHandleSignal"]
|
2024-04-23 09:33:07 +08:00
|
|
|
[connection signal="clickKeySwitchSignal" from="MarginContainer/GridContainer/InterlockReleaseSwitch" to="." method="onHandleSignal"]
|
2024-04-29 11:03:01 +08:00
|
|
|
[connection signal="removeKey" from="MarginContainer/GridContainer/InterlockReleaseSwitch" to="." method="remove_key"]
|
2024-04-23 09:33:07 +08:00
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/MarginContainer2/VBoxContainer/LightTestButton" to="." method="onHandleSignal"]
|
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/trainDepartsButton" to="." method="onHandleSignal"]
|
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/interconnectedCloseButton" to="." method="onHandleSignal"]
|
|
|
|
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/interconnectedOpenButton" to="." method="onHandleSignal"]
|
2024-04-29 17:13:14 +08:00
|
|
|
[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"]
|