diff --git a/UI/CameraSwitch/CameraSwitchUi.gd b/UI/CameraSwitch/CameraSwitchUi.gd index f1e045c..dd77794 100644 --- a/UI/CameraSwitch/CameraSwitchUi.gd +++ b/UI/CameraSwitch/CameraSwitchUi.gd @@ -22,7 +22,17 @@ func uiChange(ui): $bPassageway.show() elif ui == 'CPassageway': $CameraSwitch.hide() - $cPassageway.show() + $CPassageway.show() elif ui == 'DPassageway': $CameraSwitch.hide() - $dPassageway.show() + $DPassageway.show() + +func back(): + $CameraSwitch.show() + $aPassageway.hide() + $bPassageway.hide() + $CPassageway.hide() + $DPassageWay.hide() + $StaionHallA.hide() + $StationHallB.hide() + $VehicleControlRoom.hide() diff --git a/UI/CameraSwitch/StaionHallA.gd b/UI/CameraSwitch/StaionHallA.gd new file mode 100644 index 0000000..c2b80fd --- /dev/null +++ b/UI/CameraSwitch/StaionHallA.gd @@ -0,0 +1,43 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_back_pressed(): + $"..".back() + + +func _on_a_gangway_pressed(): + pass # Replace with function body. + + +func _on_a_lower_step_pressed(): + pass # Replace with function body. + + +func _on_a_upper_step_pressed(): + pass # Replace with function body. + + +func _on_a_exit_gate_pressed(): + pass # Replace with function body. + + +func _on_a_inbound_gate_pressed(): + pass # Replace with function body. + + +func _on_atvm_pressed(): + pass # Replace with function body. + + +func _on_a_lower_step_switch_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/StaionHallA.tscn b/UI/CameraSwitch/StaionHallA.tscn index 4d38216..5401df2 100644 --- a/UI/CameraSwitch/StaionHallA.tscn +++ b/UI/CameraSwitch/StaionHallA.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://bamcpa000guej"] +[gd_scene load_steps=6 format=3 uid="uid://bamcpa000guej"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_7ed45"] +[ext_resource type="Script" path="res://UI/CameraSwitch/StaionHallA.gd" id="1_hik27"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_tr3c8"] [ext_resource type="ButtonGroup" uid="uid://dpcn6mhawpld5" path="res://UI/CameraSwitch/StationHallABG.tres" id="3_lh5bb"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_elcbq"] [node name="StaionHallA" type="Node2D"] +script = ExtResource("1_hik27") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -78,3 +80,12 @@ theme_override_styles/normal = ExtResource("1_7ed45") theme_override_styles/hover = ExtResource("2_tr3c8") theme_override_styles/pressed = ExtResource("2_tr3c8") icon = ExtResource("4_elcbq") + +[connection signal="pressed" from="HBoxContainer/ALowerStepSwitch" to="." method="_on_a_lower_step_switch_pressed"] +[connection signal="pressed" from="HBoxContainer/ATVM" to="." method="_on_atvm_pressed"] +[connection signal="pressed" from="HBoxContainer/AInboundGate" to="." method="_on_a_inbound_gate_pressed"] +[connection signal="pressed" from="HBoxContainer/AExitGate" to="." method="_on_a_exit_gate_pressed"] +[connection signal="pressed" from="HBoxContainer/AUpperStep" to="." method="_on_a_upper_step_pressed"] +[connection signal="pressed" from="HBoxContainer/ALowerStep" to="." method="_on_a_lower_step_pressed"] +[connection signal="pressed" from="HBoxContainer/AGangway" to="." method="_on_a_gangway_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/StationHallB.gd b/UI/CameraSwitch/StationHallB.gd new file mode 100644 index 0000000..21738ce --- /dev/null +++ b/UI/CameraSwitch/StationHallB.gd @@ -0,0 +1,43 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_back_pressed(): + $"..".back() + + +func _on_b_gangway_pressed(): + pass # Replace with function body. + + +func _on_b_lower_step_pressed(): + pass # Replace with function body. + + +func _on_b_upper_step_pressed(): + pass # Replace with function body. + + +func _on_b_exit_gate_pressed(): + pass # Replace with function body. + + +func _on_b_inbound_gate_pressed(): + pass # Replace with function body. + + +func _on_btvm_pressed(): + pass # Replace with function body. + + +func _on_b_lower_step_switch_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/StationHallB.tscn b/UI/CameraSwitch/StationHallB.tscn index 735f661..00c9e54 100644 --- a/UI/CameraSwitch/StationHallB.tscn +++ b/UI/CameraSwitch/StationHallB.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://dslrsl8spalbr"] +[gd_scene load_steps=6 format=3 uid="uid://dslrsl8spalbr"] +[ext_resource type="Script" path="res://UI/CameraSwitch/StationHallB.gd" id="1_6qmjb"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_rp4s8"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_b3fhu"] [ext_resource type="ButtonGroup" uid="uid://c1nqfkfrdyx8u" path="res://UI/CameraSwitch/stationHallBBG.tres" id="3_ijcc7"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_wndap"] [node name="StationHallB" type="Node2D"] +script = ExtResource("1_6qmjb") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -80,3 +82,12 @@ theme_override_styles/normal = ExtResource("1_rp4s8") theme_override_styles/hover = ExtResource("2_b3fhu") theme_override_styles/pressed = ExtResource("2_b3fhu") icon = ExtResource("4_wndap") + +[connection signal="pressed" from="HBoxContainer/BLowerStepSwitch" to="." method="_on_b_lower_step_switch_pressed"] +[connection signal="pressed" from="HBoxContainer/BTVM" to="." method="_on_btvm_pressed"] +[connection signal="pressed" from="HBoxContainer/BInboundGate" to="." method="_on_b_inbound_gate_pressed"] +[connection signal="pressed" from="HBoxContainer/BExitGate" to="." method="_on_b_exit_gate_pressed"] +[connection signal="pressed" from="HBoxContainer/BUpperStep" to="." method="_on_b_upper_step_pressed"] +[connection signal="pressed" from="HBoxContainer/BLowerStep" to="." method="_on_b_lower_step_pressed"] +[connection signal="pressed" from="HBoxContainer/BGangway" to="." method="_on_b_gangway_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/aPassageway.gd b/UI/CameraSwitch/aPassageway.gd new file mode 100644 index 0000000..0a4b28e --- /dev/null +++ b/UI/CameraSwitch/aPassageway.gd @@ -0,0 +1,27 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_back_pressed(): + $"..".back() + + +func _on_station_hall_a_exit_pressed(): + pass # Replace with function body. + + +func _on_a_entrance_pressed(): + pass # Replace with function body. + + +func _on_a_passage_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/aPassageway.tscn b/UI/CameraSwitch/aPassageway.tscn index d24769e..c206f54 100644 --- a/UI/CameraSwitch/aPassageway.tscn +++ b/UI/CameraSwitch/aPassageway.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://ovnvmr7gkw1g"] +[gd_scene load_steps=6 format=3 uid="uid://ovnvmr7gkw1g"] +[ext_resource type="Script" path="res://UI/CameraSwitch/aPassageway.gd" id="1_eocnb"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_meoki"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_uigu1"] [ext_resource type="ButtonGroup" uid="uid://c53ro582bl71m" path="res://UI/CameraSwitch/aPassagewayBG.tres" id="3_r38v3"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_ay28j"] [node name="CameraSwitch2" type="Node2D"] +script = ExtResource("1_eocnb") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -44,3 +46,8 @@ theme_override_styles/normal = ExtResource("1_meoki") theme_override_styles/hover = ExtResource("2_uigu1") theme_override_styles/pressed = ExtResource("2_uigu1") icon = ExtResource("4_ay28j") + +[connection signal="pressed" from="HBoxContainer/StationHallAExit" to="." method="_on_station_hall_a_exit_pressed"] +[connection signal="pressed" from="HBoxContainer/AEntrance" to="." method="_on_a_entrance_pressed"] +[connection signal="pressed" from="HBoxContainer/APassage" to="." method="_on_a_passage_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/bPassageway.gd b/UI/CameraSwitch/bPassageway.gd new file mode 100644 index 0000000..38adef4 --- /dev/null +++ b/UI/CameraSwitch/bPassageway.gd @@ -0,0 +1,28 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_back_pressed(): + $"..".back() + + + +func _on_b_passage_pressed(): + pass # Replace with function body. + + +func _on_b_entrance_pressed(): + pass # Replace with function body. + + +func _on_station_hall_b_exit_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/bPassageway.tscn b/UI/CameraSwitch/bPassageway.tscn index 89c0e50..c63153d 100644 --- a/UI/CameraSwitch/bPassageway.tscn +++ b/UI/CameraSwitch/bPassageway.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://pk7wagur80bd"] +[gd_scene load_steps=6 format=3 uid="uid://pk7wagur80bd"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_cfwbe"] [ext_resource type="ButtonGroup" uid="uid://dt465r7r0lnbd" path="res://UI/CameraSwitch/bPassagewayBG.tres" id="1_f63jd"] +[ext_resource type="Script" path="res://UI/CameraSwitch/bPassageway.gd" id="1_y1vth"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_hns06"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_kvl7a"] [node name="CameraSwitch3" type="Node2D"] +script = ExtResource("1_y1vth") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -44,3 +46,8 @@ theme_override_styles/normal = ExtResource("1_cfwbe") theme_override_styles/hover = ExtResource("2_hns06") theme_override_styles/pressed = ExtResource("2_hns06") icon = ExtResource("4_kvl7a") + +[connection signal="pressed" from="HBoxContainer/StationHallBExit" to="." method="_on_station_hall_b_exit_pressed"] +[connection signal="pressed" from="HBoxContainer/BEntrance" to="." method="_on_b_entrance_pressed"] +[connection signal="pressed" from="HBoxContainer/BPassage" to="." method="_on_b_passage_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/cPassageway.gd b/UI/CameraSwitch/cPassageway.gd new file mode 100644 index 0000000..b57ebca --- /dev/null +++ b/UI/CameraSwitch/cPassageway.gd @@ -0,0 +1,26 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + +func _on_back_pressed(): + $"..".back() + + +func _on_c_passage_pressed(): + pass # Replace with function body. + + +func _on_c_entrance_pressed(): + pass # Replace with function body. + + +func _on_station_hall_c_exit_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/cPassageway.tscn b/UI/CameraSwitch/cPassageway.tscn index b9b1243..ff8c303 100644 --- a/UI/CameraSwitch/cPassageway.tscn +++ b/UI/CameraSwitch/cPassageway.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://dpqc5c4367k2t"] +[gd_scene load_steps=6 format=3 uid="uid://dpqc5c4367k2t"] +[ext_resource type="Script" path="res://UI/CameraSwitch/cPassageway.gd" id="1_5iuyw"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_rvdos"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_x00po"] [ext_resource type="ButtonGroup" uid="uid://b2be0xeb2oqvp" path="res://UI/CameraSwitch/cPassagewayBG.tres" id="3_mnqou"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_yjryb"] [node name="CPassageway" type="Node2D"] +script = ExtResource("1_5iuyw") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -44,3 +46,8 @@ theme_override_styles/normal = ExtResource("1_rvdos") theme_override_styles/hover = ExtResource("2_x00po") theme_override_styles/pressed = ExtResource("2_x00po") icon = ExtResource("4_yjryb") + +[connection signal="pressed" from="HBoxContainer/StationHallCExit" to="." method="_on_station_hall_c_exit_pressed"] +[connection signal="pressed" from="HBoxContainer/CEntrance" to="." method="_on_c_entrance_pressed"] +[connection signal="pressed" from="HBoxContainer/CPassage" to="." method="_on_c_passage_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/cameraSwitch.gd b/UI/CameraSwitch/cameraSwitch.gd index d7ffdaa..23941fc 100644 --- a/UI/CameraSwitch/cameraSwitch.gd +++ b/UI/CameraSwitch/cameraSwitch.gd @@ -10,41 +10,41 @@ enum Camera_name{ VehicleControlRoom,#车控室 StationHall,#站厅 UpPlatform,#上行站台 - #DownPlatform,#下行站台 + DownPlatform,#下行站台 #APassageway,#A出入口 #BPassageway,#B出入口 #CPassageway,#C出入口 #DPassageway,#D出入口 - #StaionHallA,#站厅A端 - #StationHallB,#站厅B端 - #StationHallAExit,#站厅A出口 - #AEntrance,#A入口 - #APassage,#A口通道 - #StationHallBExit,#站厅B出口 - #BEntrance,#B入口 - #BPassage,#B口通道 - #StationHallCExit,#站厅C出口 - #CEntrance,#C入口 - #CBPassage,#C口通道 - #StationHallDExit,#站厅D出口 - #DEntrance,#D入口 - #DBPassage,#D口通道 - #ALowerStepSwitch,#A端扶梯下部开关 - #ATVM,#A端TVM - #AInboundGate,#A端进站闸机 - #AExitGate,#A端出站闸机 - #AUpperStep,#A端扶梯上部 - #ALowerStep,#A端扶梯下部 - #AGangway,#A端站厅步梯口 - #BLowerStepSwitch,#B端扶梯下部开关 - #BTVM,#B端TVM - #BInboundGate,#B端进站闸机 - #BExitGate,#B端出站闸机 - #BUpperStep,#B端扶梯上部 - #BLowerStep,#B端扶梯下部 - #BGangway,#B端站厅步梯口 - #SparePartsCabinet,#备品柜 - #PartsArea,#备品区 + StaionHallA,#站厅A端 + StationHallB,#站厅B端 + StationHallAExit,#站厅A出口 + AEntrance,#A入口 + APassage,#A口通道 + StationHallBExit,#站厅B出口 + BEntrance,#B入口 + BPassage,#B口通道 + StationHallCExit,#站厅C出口 + CEntrance,#C入口 + CBPassage,#C口通道 + StationHallDExit,#站厅D出口 + DEntrance,#D入口 + DBPassage,#D口通道 + ALowerStepSwitch,#A端扶梯下部开关 + ATVM,#A端TVM + AInboundGate,#A端进站闸机 + AExitGate,#A端出站闸机 + AUpperStep,#A端扶梯上部 + ALowerStep,#A端扶梯下部 + AGangway,#A端站厅步梯口 + BLowerStepSwitch,#B端扶梯下部开关 + BTVM,#B端TVM + BInboundGate,#B端进站闸机 + BExitGate,#B端出站闸机 + BUpperStep,#B端扶梯上部 + BLowerStep,#B端扶梯下部 + BGangway,#B端站厅步梯口 + SparePartsCabinet,#备品柜 + PartsArea,#备品区 } # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta): @@ -70,17 +70,21 @@ func _on_down_platform_pressed(): func _on_a_passageway_pressed(): + switchCamera(Camera_name.AEntrance) $"..".uiChange('APassageway') func _on_b_passageway_pressed(): + switchCamera(Camera_name.BEntrance) $"..".uiChange('BPassageway') func _on_c_passageway_pressed(): + switchCamera(Camera_name.CEntrance) $"..".uiChange('CPassageway') func _on_d_passageway_pressed(): + switchCamera(Camera_name.DEntrance) $"..".uiChange('DPassageway') diff --git a/UI/CameraSwitch/dPassageWay.gd b/UI/CameraSwitch/dPassageWay.gd new file mode 100644 index 0000000..9664357 --- /dev/null +++ b/UI/CameraSwitch/dPassageWay.gd @@ -0,0 +1,28 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + + +func _on_back_pressed(): + $"..".back() + + +func _on_d_passage_pressed(): + pass # Replace with function body. + + +func _on_d_entrance_pressed(): + pass # Replace with function body. + + +func _on_station_hall_d_exit_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/dPassageWay.tscn b/UI/CameraSwitch/dPassageWay.tscn index b2c6775..d15a716 100644 --- a/UI/CameraSwitch/dPassageWay.tscn +++ b/UI/CameraSwitch/dPassageWay.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://dsfrweddyc2rl"] +[gd_scene load_steps=6 format=3 uid="uid://dsfrweddyc2rl"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_5ogd2"] +[ext_resource type="Script" path="res://UI/CameraSwitch/dPassageWay.gd" id="1_e7ixx"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_w31f1"] [ext_resource type="ButtonGroup" uid="uid://b7c885q7m1asf" path="res://UI/CameraSwitch/dPassagewayBG.tres" id="3_6jna6"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_yyevw"] [node name="DPassageWay" type="Node2D"] +script = ExtResource("1_e7ixx") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -44,3 +46,8 @@ theme_override_styles/normal = ExtResource("1_5ogd2") theme_override_styles/hover = ExtResource("2_w31f1") theme_override_styles/pressed = ExtResource("2_w31f1") icon = ExtResource("4_yyevw") + +[connection signal="pressed" from="HBoxContainer/StationHallDExit" to="." method="_on_station_hall_d_exit_pressed"] +[connection signal="pressed" from="HBoxContainer/DEntrance" to="." method="_on_d_entrance_pressed"] +[connection signal="pressed" from="HBoxContainer/DPassage" to="." method="_on_d_passage_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/UI/CameraSwitch/vehicleControlRoom.gd b/UI/CameraSwitch/vehicleControlRoom.gd new file mode 100644 index 0000000..75a3ee8 --- /dev/null +++ b/UI/CameraSwitch/vehicleControlRoom.gd @@ -0,0 +1,23 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +func _on_back_pressed(): + $"..".back() + + +func _on_parts_area_pressed(): + pass # Replace with function body. + + +func _on_spare_parts_cabinet_pressed(): + pass # Replace with function body. diff --git a/UI/CameraSwitch/vehicleControlRoom.tscn b/UI/CameraSwitch/vehicleControlRoom.tscn index 360716c..54a85c6 100644 --- a/UI/CameraSwitch/vehicleControlRoom.tscn +++ b/UI/CameraSwitch/vehicleControlRoom.tscn @@ -1,11 +1,13 @@ -[gd_scene load_steps=5 format=3 uid="uid://c4e1cn0qrak2v"] +[gd_scene load_steps=6 format=3 uid="uid://c4e1cn0qrak2v"] [ext_resource type="StyleBox" uid="uid://d2f2wgj4omqrj" path="res://UI/CameraSwitch/CameraSwitchButtonNormal.tres" id="1_x7ttc"] +[ext_resource type="Script" path="res://UI/CameraSwitch/vehicleControlRoom.gd" id="1_ylqsv"] [ext_resource type="StyleBox" uid="uid://c4cifub1prvg0" path="res://UI/CameraSwitch/CarmeraSwitchButtonPressed.tres" id="2_1408d"] [ext_resource type="ButtonGroup" uid="uid://bp8jp7h6rsj7y" path="res://UI/CameraSwitch/vehicleControlRoomBG.tres" id="3_3oxh3"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_vdrwi"] [node name="VehicleControlRoom" type="Node2D"] +script = ExtResource("1_ylqsv") [node name="HBoxContainer" type="HBoxContainer" parent="."] offset_right = 40.0 @@ -34,3 +36,7 @@ layout_mode = 2 theme_override_styles/normal = ExtResource("1_x7ttc") theme_override_styles/hover = ExtResource("2_1408d") icon = ExtResource("4_vdrwi") + +[connection signal="pressed" from="HBoxContainer/SparePartsCabinet" to="." method="_on_spare_parts_cabinet_pressed"] +[connection signal="pressed" from="HBoxContainer/PartsArea" to="." method="_on_parts_area_pressed"] +[connection signal="pressed" from="HBoxContainer/Back" to="." method="_on_back_pressed"] diff --git a/sceen/totalOfLargePassengerFlow.gd b/sceen/totalOfLargePassengerFlow.gd index 27e1797..001db7a 100644 --- a/sceen/totalOfLargePassengerFlow.gd +++ b/sceen/totalOfLargePassengerFlow.gd @@ -10,36 +10,36 @@ enum Camera_name{ #BPassageway,#B出入口 #CPassageway,#C出入口 #DPassageway,#D出入口 - #StaionHallA,#站厅A端 - #StationHallB,#站厅B端 - #StationHallAExit,#站厅A出口 - #AEntrance,#A入口 - #APassage,#A口通道 - #StationHallBExit,#站厅B出口 - #BEntrance,#B入口 - #BPassage,#B口通道 - #StationHallCExit,#站厅C出口 - #CEntrance,#C入口 - #CBPassage,#C口通道 - #StationHallDExit,#站厅D出口 - #DEntrance,#D入口 - #DBPassage,#D口通道 - #ALowerStepSwitch,#A端扶梯下部开关 - #ATVM,#A端TVM - #AInboundGate,#A端进站闸机 - #AExitGate,#A端出站闸机 - #AUpperStep,#A端扶梯上部 - #ALowerStep,#A端扶梯下部 - #AGangway,#A端站厅步梯口 - #BLowerStepSwitch,#B端扶梯下部开关 - #BTVM,#B端TVM - #BInboundGate,#B端进站闸机 - #BExitGate,#B端出站闸机 - #BUpperStep,#B端扶梯上部 - #BLowerStep,#B端扶梯下部 - #BGangway,#B端站厅步梯口 - #SparePartsCabinet,#备品柜 - #PartsArea,#备品区 + StaionHallA,#站厅A端 + StationHallB,#站厅B端 + StationHallAExit,#站厅A出口 + AEntrance,#A入口 + APassage,#A口通道 + StationHallBExit,#站厅B出口 + BEntrance,#B入口 + BPassage,#B口通道 + StationHallCExit,#站厅C出口 + CEntrance,#C入口 + CBPassage,#C口通道 + StationHallDExit,#站厅D出口 + DEntrance,#D入口 + DBPassage,#D口通道 + ALowerStepSwitch,#A端扶梯下部开关 + ATVM,#A端TVM + AInboundGate,#A端进站闸机 + AExitGate,#A端出站闸机 + AUpperStep,#A端扶梯上部 + ALowerStep,#A端扶梯下部 + AGangway,#A端站厅步梯口 + BLowerStepSwitch,#B端扶梯下部开关 + BTVM,#B端TVM + BInboundGate,#B端进站闸机 + BExitGate,#B端出站闸机 + BUpperStep,#B端扶梯上部 + BLowerStep,#B端扶梯下部 + BGangway,#B端站厅步梯口 + SparePartsCabinet,#备品柜 + PartsArea,#备品区 } @onready var cameras = [$VehicleControlRoom,$StationHall,$UpPlatform]