godot-psd-training/UI/psl/psl_window.tscn
2024-05-06 17:28:42 +08:00

147 lines
6.7 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://dppmr7ifqt8oa"]
[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"]
[ext_resource type="PackedScene" uid="uid://p7uurq4exr6q" path="res://UI/psl/light_model.tscn" id="6_nn68f"]
[ext_resource type="Texture2D" uid="uid://cpmlwpev7rvbp" path="res://Assets/打开钥匙面板钥匙.png" id="7_643a1"]
[ext_resource type="PackedScene" uid="uid://c31r8s27j4dcm" path="res://UI/psl/button_model.tscn" id="7_p8tve"]
[node name="psl" type="Window"]
title = "psl操作面板"
position = Vector2i(10, 36)
size = Vector2i(460, 720)
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="."]
position = Vector2(220, 0)
scale = Vector2(0.43, 1.14)
texture = ExtResource("4_cpydh")
[node name="MarginContainer" type="MarginContainer" parent="."]
offset_left = 30.0
offset_top = 4.0
offset_right = 537.0
offset_bottom = 1529.0
scale = Vector2(0.7, 0.7)
theme_override_constants/margin_left = 45
theme_override_constants/margin_top = 35
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
layout_mode = 2
columns = 3
[node name="PSLAllow" parent="MarginContainer/GridContainer" instance=ExtResource("6_8mvyb")]
layout_mode = 2
size_flags_horizontal = 6
keySwitchHasKey = true
lightText = "PSL允许指示灯"
keyText = "操作允许无效有效"
[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
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer/MarginContainer"]
layout_mode = 2
[node name="AllScreenDoorCloseLight" parent="MarginContainer/GridContainer/MarginContainer/VBoxContainer" instance=ExtResource("6_nn68f")]
layout_mode = 2
lightText = "全部门关闭紧锁指"
[node name="CloseDoorButton" parent="MarginContainer/GridContainer/MarginContainer/VBoxContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
size_flags_horizontal = 6
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
lightText = "开门到位指示灯"
[node name="OpenDoorButton" parent="MarginContainer/GridContainer/VBoxContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
size_flags_horizontal = 6
buttonText = "开门按钮"
[node name="InterlockReleaseSwitch" parent="MarginContainer/GridContainer" instance=ExtResource("6_8mvyb")]
layout_mode = 2
size_flags_horizontal = 6
keySwitchHasKey = true
lightText = "互锁解除指示灯"
keyText = "互锁解除开关"
[node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/GridContainer"]
layout_mode = 2
theme_override_constants/margin_bottom = 35
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer/MarginContainer2"]
layout_mode = 2
[node name="IBPHandleLight" parent="MarginContainer/GridContainer/MarginContainer2/VBoxContainer" instance=ExtResource("6_nn68f")]
layout_mode = 2
size_flags_horizontal = 4
lightType = 1
lightText = "IBP操作指示灯"
[node name="LightTestButton" parent="MarginContainer/GridContainer/MarginContainer2/VBoxContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
size_flags_horizontal = 4
buttonType = 2
buttonText = "灯测试按钮"
[node name="PSTHandle" parent="MarginContainer/GridContainer" instance=ExtResource("6_8mvyb")]
layout_mode = 2
size_flags_horizontal = 6
lightText = "PST操作指示灯"
[node name="trainDepartsButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
buttonText = "发车按钮"
[node name="interconnectedCloseButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
size_flags_horizontal = 6
buttonType = 1
buttonText = "联动关门按钮"
[node name="interconnectedOpenButton" parent="MarginContainer/GridContainer" instance=ExtResource("7_p8tve")]
layout_mode = 2
buttonText = "联动开门按钮"
[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")
[connection signal="close_requested" from="." to="." method="_on_close_requested"]
[connection signal="clickKeySwitchSignal" from="MarginContainer/GridContainer/PSLAllow" to="." method="onHandleSignal"]
[connection signal="removeKey" from="MarginContainer/GridContainer/PSLAllow" to="." method="remove_key"]
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/MarginContainer/VBoxContainer/CloseDoorButton" to="." method="onHandleSignal"]
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/VBoxContainer/OpenDoorButton" to="." method="onHandleSignal"]
[connection signal="clickKeySwitchSignal" from="MarginContainer/GridContainer/InterlockReleaseSwitch" to="." method="onHandleSignal"]
[connection signal="removeKey" from="MarginContainer/GridContainer/InterlockReleaseSwitch" to="." method="remove_key"]
[connection signal="clickButtonSignal" from="MarginContainer/GridContainer/MarginContainer2/VBoxContainer/LightTestButton" to="." method="onHandleSignal"]
[connection signal="clickKeySwitchSignal" from="MarginContainer/GridContainer/PSTHandle" 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"]
[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"]