extends Node2D # Called when the node enters the scene tree for the first time. func _ready(): pass # Replace with function body. ## 照相机名字的枚举 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,#备品区 } # 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(): switchCamera(Camera_name.VehicleControlRoom) func _on_station_hall_pressed(): switchCamera(Camera_name.StationHall) func _on_up_platform_pressed(): switchCamera(Camera_name.UpPlatform) func _on_down_platform_pressed(): #switchCamera(Camera_name.DownPlatform) pass func _on_a_passageway_pressed(): $"..".uiChange('APassageway') func _on_b_passageway_pressed(): $"..".uiChange('BPassageway') func _on_c_passageway_pressed(): $"..".uiChange('CPassageway') func _on_d_passageway_pressed(): $"..".uiChange('DPassageway') func _on_staion_hall_a_pressed(): #switchCamera($"..".Camera_name.StaionHallA) pass func _on_station_hall_b_pressed(): #switchCamera($"..".Camera_name.StationHallB) pass