public void OnSaveOrbitVessel(Vessel vessel, string launchVehicleName)
 {
     if (vessel.situation != Vessel.Situations.ORBITING)
     {
         ScreenMessages.PostScreenMessage("Can't save yet, must be orbiting!", 4, ScreenMessageStyle.UPPER_CENTER);
         return;
     }
     saveMissionDialog = SaveMissionDialog.Create(OnSaveMissionDialogDismiss, launchVehicleName, vessel);
 }
Пример #2
0
 private void OnDestroy()
 {
     if (Instance != null)
     {
         if (Instance == this)
         {
             Instance = null;
         }
     }
     InputLockManager.RemoveControlLock("BeenThereDoneThatSaveMissionDialog");
     FlightDriver.SetPause(false, true);
 }
Пример #3
0
        public static SaveMissionDialog Create(Callback onDismissMenu, string launchVehicleName, Vessel vessel)
        {
            GameObject        gameObject        = new GameObject("BeenThereDoneThat mission save menu");
            SaveMissionDialog saveMissionDialog = gameObject.AddComponent <SaveMissionDialog>();

            saveMissionDialog.onDismissCallback = onDismissMenu;
            saveMissionDialog.launchVehicleName = launchVehicleName;
            saveMissionDialog.vessel            = vessel;
            saveMissionDialog.missionName       = GetMissionName(vessel);

            return(saveMissionDialog);
        }
Пример #4
0
 public void Awake()
 {
     Instance = this;
     FlightDriver.SetPause(true, true);
     InputLockManager.SetControlLock("BeenThereDoneThatSaveMissionDialog");
 }
 public void OnSaveMissionDialogDismiss()
 {
     saveMissionDialog = null;
 }