extends Node2D func switchCamera(camera,emit = true): $"..".switchCamera(camera,emit) func _on_vehicle_control_room_pressed(): $"..".AllClickCameraSwitchUi.emit('VehicleControlRoom',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.SparePartsCabinet,false) $"..".uiChange('VehicleControlRoom') func _on_station_hall_pressed(): switchCamera(LargePassengerFlowScene.Camera_name.StationHall) func _on_up_platform_pressed(): switchCamera(LargePassengerFlowScene.Camera_name.UpPlatform) func _on_down_platform_pressed(): switchCamera(LargePassengerFlowScene.Camera_name.DownPlatform) func _on_a_passageway_pressed(): $"..".AllClickCameraSwitchUi.emit('aPassageway',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.AEntrance,false) $"..".uiChange('APassageway') func _on_b_passageway_pressed(): $"..".AllClickCameraSwitchUi.emit('bPassageway',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.BEntrance,false) $"..".uiChange('BPassageway') func _on_c_passageway_pressed(): $"..".AllClickCameraSwitchUi.emit('CPassageway',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.CEntrance,false) $"..".uiChange('CPassageway') func _on_d_passageway_pressed(): $"..".AllClickCameraSwitchUi.emit('DPassageway',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.DEntrance,false) $"..".uiChange('DPassageway') func _on_staion_hall_a_pressed(): $"..".AllClickCameraSwitchUi.emit('StaionHallA',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.AExitGate,false) $"..".uiChange('StaionHallA') func _on_station_hall_b_pressed(): $"..".AllClickCameraSwitchUi.emit('StationHallB',$"..") if !$"..".allowHandle : return switchCamera(LargePassengerFlowScene.Camera_name.BExitGate,false) $"..".uiChange('StaionHallB')