2024-06-17 16:35:21 +08:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
2024-06-17 19:49:24 +08:00
|
|
|
## 照相机名字的枚举
|
|
|
|
enum Camera_name{
|
|
|
|
VehicleControlRoom,#车控室
|
|
|
|
StationHall,#站厅
|
|
|
|
UpPlatform,#上行站台
|
|
|
|
#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,#备品区
|
|
|
|
}
|
2024-06-17 16:35:21 +08:00
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
func _process(delta):
|
|
|
|
pass
|
|
|
|
|
|
|
|
func switchCamera(camera):
|
|
|
|
$"..".switchCamera(camera)
|
|
|
|
|
|
|
|
func _on_vehicle_control_room_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
switchCamera(Camera_name.VehicleControlRoom)
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_station_hall_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
switchCamera(Camera_name.StationHall)
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
func _on_up_platform_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
switchCamera(Camera_name.UpPlatform)
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_down_platform_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
#switchCamera(Camera_name.DownPlatform)
|
|
|
|
pass
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_a_passageway_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
$"..".uiChange('APassageway')
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
func _on_b_passageway_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
$"..".uiChange('BPassageway')
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_c_passageway_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
$"..".uiChange('CPassageway')
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_d_passageway_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
$"..".uiChange('DPassageway')
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_staion_hall_a_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
#switchCamera($"..".Camera_name.StaionHallA)
|
|
|
|
pass
|
2024-06-17 16:35:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
func _on_station_hall_b_pressed():
|
2024-06-17 19:49:24 +08:00
|
|
|
#switchCamera($"..".Camera_name.StationHallB)
|
|
|
|
pass
|