相机切换调整

This commit is contained in:
joylink_fanyuhong 2024-06-18 08:45:49 +08:00
parent 6de77fa336
commit 1229684907
17 changed files with 358 additions and 70 deletions

View File

@ -22,7 +22,17 @@ func uiChange(ui):
$bPassageway.show() $bPassageway.show()
elif ui == 'CPassageway': elif ui == 'CPassageway':
$CameraSwitch.hide() $CameraSwitch.hide()
$cPassageway.show() $CPassageway.show()
elif ui == 'DPassageway': elif ui == 'DPassageway':
$CameraSwitch.hide() $CameraSwitch.hide()
$dPassageway.show() $DPassageway.show()
func back():
$CameraSwitch.show()
$aPassageway.hide()
$bPassageway.hide()
$CPassageway.hide()
$DPassageWay.hide()
$StaionHallA.hide()
$StationHallB.hide()
$VehicleControlRoom.hide()

View File

@ -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.

View File

@ -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="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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_elcbq"]
[node name="StaionHallA" type="Node2D"] [node name="StaionHallA" type="Node2D"]
script = ExtResource("1_hik27")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_tr3c8")
theme_override_styles/pressed = ExtResource("2_tr3c8") theme_override_styles/pressed = ExtResource("2_tr3c8")
icon = ExtResource("4_elcbq") 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"]

View File

@ -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.

View File

@ -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://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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_wndap"]
[node name="StationHallB" type="Node2D"] [node name="StationHallB" type="Node2D"]
script = ExtResource("1_6qmjb")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_b3fhu")
theme_override_styles/pressed = ExtResource("2_b3fhu") theme_override_styles/pressed = ExtResource("2_b3fhu")
icon = ExtResource("4_wndap") 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"]

View File

@ -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.

View File

@ -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://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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_ay28j"]
[node name="CameraSwitch2" type="Node2D"] [node name="CameraSwitch2" type="Node2D"]
script = ExtResource("1_eocnb")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_uigu1")
theme_override_styles/pressed = ExtResource("2_uigu1") theme_override_styles/pressed = ExtResource("2_uigu1")
icon = ExtResource("4_ay28j") 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"]

View File

@ -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.

View File

@ -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="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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_kvl7a"]
[node name="CameraSwitch3" type="Node2D"] [node name="CameraSwitch3" type="Node2D"]
script = ExtResource("1_y1vth")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_hns06")
theme_override_styles/pressed = ExtResource("2_hns06") theme_override_styles/pressed = ExtResource("2_hns06")
icon = ExtResource("4_kvl7a") 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"]

View File

@ -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.

View File

@ -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://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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_yjryb"]
[node name="CPassageway" type="Node2D"] [node name="CPassageway" type="Node2D"]
script = ExtResource("1_5iuyw")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_x00po")
theme_override_styles/pressed = ExtResource("2_x00po") theme_override_styles/pressed = ExtResource("2_x00po")
icon = ExtResource("4_yjryb") 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"]

View File

@ -10,41 +10,41 @@ enum Camera_name{
VehicleControlRoom,#车控室 VehicleControlRoom,#车控室
StationHall,#站厅 StationHall,#站厅
UpPlatform,#上行站台 UpPlatform,#上行站台
#DownPlatform,#下行站台 DownPlatform,#下行站台
#APassageway,#A出入口 #APassageway,#A出入口
#BPassageway,#B出入口 #BPassageway,#B出入口
#CPassageway,#C出入口 #CPassageway,#C出入口
#DPassageway,#D出入口 #DPassageway,#D出入口
#StaionHallA,#站厅A端 StaionHallA,#站厅A端
#StationHallB,#站厅B端 StationHallB,#站厅B端
#StationHallAExit,#站厅A出口 StationHallAExit,#站厅A出口
#AEntrance,#A入口 AEntrance,#A入口
#APassage,#A口通道 APassage,#A口通道
#StationHallBExit,#站厅B出口 StationHallBExit,#站厅B出口
#BEntrance,#B入口 BEntrance,#B入口
#BPassage,#B口通道 BPassage,#B口通道
#StationHallCExit,#站厅C出口 StationHallCExit,#站厅C出口
#CEntrance,#C入口 CEntrance,#C入口
#CBPassage,#C口通道 CBPassage,#C口通道
#StationHallDExit,#站厅D出口 StationHallDExit,#站厅D出口
#DEntrance,#D入口 DEntrance,#D入口
#DBPassage,#D口通道 DBPassage,#D口通道
#ALowerStepSwitch,#A端扶梯下部开关 ALowerStepSwitch,#A端扶梯下部开关
#ATVM,#A端TVM ATVM,#A端TVM
#AInboundGate,#A端进站闸机 AInboundGate,#A端进站闸机
#AExitGate,#A端出站闸机 AExitGate,#A端出站闸机
#AUpperStep,#A端扶梯上部 AUpperStep,#A端扶梯上部
#ALowerStep,#A端扶梯下部 ALowerStep,#A端扶梯下部
#AGangway,#A端站厅步梯口 AGangway,#A端站厅步梯口
#BLowerStepSwitch,#B端扶梯下部开关 BLowerStepSwitch,#B端扶梯下部开关
#BTVM,#B端TVM BTVM,#B端TVM
#BInboundGate,#B端进站闸机 BInboundGate,#B端进站闸机
#BExitGate,#B端出站闸机 BExitGate,#B端出站闸机
#BUpperStep,#B端扶梯上部 BUpperStep,#B端扶梯上部
#BLowerStep,#B端扶梯下部 BLowerStep,#B端扶梯下部
#BGangway,#B端站厅步梯口 BGangway,#B端站厅步梯口
#SparePartsCabinet,#备品柜 SparePartsCabinet,#备品柜
#PartsArea,#备品区 PartsArea,#备品区
} }
# Called every frame. 'delta' is the elapsed time since the previous frame. # Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta): func _process(delta):
@ -70,17 +70,21 @@ func _on_down_platform_pressed():
func _on_a_passageway_pressed(): func _on_a_passageway_pressed():
switchCamera(Camera_name.AEntrance)
$"..".uiChange('APassageway') $"..".uiChange('APassageway')
func _on_b_passageway_pressed(): func _on_b_passageway_pressed():
switchCamera(Camera_name.BEntrance)
$"..".uiChange('BPassageway') $"..".uiChange('BPassageway')
func _on_c_passageway_pressed(): func _on_c_passageway_pressed():
switchCamera(Camera_name.CEntrance)
$"..".uiChange('CPassageway') $"..".uiChange('CPassageway')
func _on_d_passageway_pressed(): func _on_d_passageway_pressed():
switchCamera(Camera_name.DEntrance)
$"..".uiChange('DPassageway') $"..".uiChange('DPassageway')

View File

@ -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.

View File

@ -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="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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_yyevw"]
[node name="DPassageWay" type="Node2D"] [node name="DPassageWay" type="Node2D"]
script = ExtResource("1_e7ixx")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 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/hover = ExtResource("2_w31f1")
theme_override_styles/pressed = ExtResource("2_w31f1") theme_override_styles/pressed = ExtResource("2_w31f1")
icon = ExtResource("4_yyevw") 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"]

View File

@ -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.

View File

@ -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="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="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="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"] [ext_resource type="Texture2D" uid="uid://crh0yovojc7wq" path="res://Assets/backIcon.png" id="4_vdrwi"]
[node name="VehicleControlRoom" type="Node2D"] [node name="VehicleControlRoom" type="Node2D"]
script = ExtResource("1_ylqsv")
[node name="HBoxContainer" type="HBoxContainer" parent="."] [node name="HBoxContainer" type="HBoxContainer" parent="."]
offset_right = 40.0 offset_right = 40.0
@ -34,3 +36,7 @@ layout_mode = 2
theme_override_styles/normal = ExtResource("1_x7ttc") theme_override_styles/normal = ExtResource("1_x7ttc")
theme_override_styles/hover = ExtResource("2_1408d") theme_override_styles/hover = ExtResource("2_1408d")
icon = ExtResource("4_vdrwi") 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"]

View File

@ -10,36 +10,36 @@ enum Camera_name{
#BPassageway,#B出入口 #BPassageway,#B出入口
#CPassageway,#C出入口 #CPassageway,#C出入口
#DPassageway,#D出入口 #DPassageway,#D出入口
#StaionHallA,#站厅A端 StaionHallA,#站厅A端
#StationHallB,#站厅B端 StationHallB,#站厅B端
#StationHallAExit,#站厅A出口 StationHallAExit,#站厅A出口
#AEntrance,#A入口 AEntrance,#A入口
#APassage,#A口通道 APassage,#A口通道
#StationHallBExit,#站厅B出口 StationHallBExit,#站厅B出口
#BEntrance,#B入口 BEntrance,#B入口
#BPassage,#B口通道 BPassage,#B口通道
#StationHallCExit,#站厅C出口 StationHallCExit,#站厅C出口
#CEntrance,#C入口 CEntrance,#C入口
#CBPassage,#C口通道 CBPassage,#C口通道
#StationHallDExit,#站厅D出口 StationHallDExit,#站厅D出口
#DEntrance,#D入口 DEntrance,#D入口
#DBPassage,#D口通道 DBPassage,#D口通道
#ALowerStepSwitch,#A端扶梯下部开关 ALowerStepSwitch,#A端扶梯下部开关
#ATVM,#A端TVM ATVM,#A端TVM
#AInboundGate,#A端进站闸机 AInboundGate,#A端进站闸机
#AExitGate,#A端出站闸机 AExitGate,#A端出站闸机
#AUpperStep,#A端扶梯上部 AUpperStep,#A端扶梯上部
#ALowerStep,#A端扶梯下部 ALowerStep,#A端扶梯下部
#AGangway,#A端站厅步梯口 AGangway,#A端站厅步梯口
#BLowerStepSwitch,#B端扶梯下部开关 BLowerStepSwitch,#B端扶梯下部开关
#BTVM,#B端TVM BTVM,#B端TVM
#BInboundGate,#B端进站闸机 BInboundGate,#B端进站闸机
#BExitGate,#B端出站闸机 BExitGate,#B端出站闸机
#BUpperStep,#B端扶梯上部 BUpperStep,#B端扶梯上部
#BLowerStep,#B端扶梯下部 BLowerStep,#B端扶梯下部
#BGangway,#B端站厅步梯口 BGangway,#B端站厅步梯口
#SparePartsCabinet,#备品柜 SparePartsCabinet,#备品柜
#PartsArea,#备品区 PartsArea,#备品区
} }
@onready var cameras = [$VehicleControlRoom,$StationHall,$UpPlatform] @onready var cameras = [$VehicleControlRoom,$StationHall,$UpPlatform]