private void OnFlightUIModeChanged(FlightUIMode mode)
            {
                Vessel vessel = FlightGlobals.ActiveVessel;

                if (vessel == null)
                {
                    return;
                }
                if (DOCKING.enabled && vessel.situation == Vessel.Situations.ORBITING)
                {
                    if (mode == FlightUIMode.DOCKING)
                    {
                        SwitchProfile(DOCKING);
                    }
                    else
                    {
                        if (mode == FlightUIMode.ORBITAL)
                        {
                            SwitchProfile(ORBIT);
                        }
                        else
                        {
                            SwitchToSituation(vessel.situation);
                        }
                    }
                }
                UnlockProfileChange();
            }
Beispiel #2
0
        private void FlightUIModeChanged(FlightUIMode mode)
        {
#if KSP170
            IsOrbital = ThisPart.vessel.situation == Vessel.Situations.ORBITING;
#else
            IsOrbital = mode == FlightUIMode.ORBITAL;
#endif
        }
Beispiel #3
0
 private void FlightUIModeChanged(FlightUIMode mode)
 {
     if (mode == FlightUIMode.ORBITAL)
     {
         IsOrbital = true;
     }
     else
     {
         IsOrbital = false;
     }
 }
Beispiel #4
0
        private void FlightUIModeChanged(FlightUIMode mode)
        {
            if (ThisPart != null && ThisPart.vessel != null)
            {
                IsOrbital = ThisPart.vessel.situation == Vessel.Situations.ORBITING;
            }
            else
            {
                IsOrbital = false;
            }
#if false // This was pre 1.7.0
            IsOrbital = mode == FlightUIMode.ORBITAL;
#endif
        }
Beispiel #5
0
        private void FlightUIModeChanged(FlightUIMode mode)
        {
#if KSP170
            if (ThisPart != null && ThisPart.vessel != null)
            {
                IsOrbital = ThisPart.vessel.situation == Vessel.Situations.ORBITING;
            }
            else
            {
                IsOrbital = false;
            }
#else
            IsOrbital = mode == FlightUIMode.ORBITAL;
#endif
        }
 private void OnFlightModeChange(FlightUIMode mode)
 {
     if (mode == FlightUIMode.DOCKING)
     {
         if (_parentObject.activeSelf)
         {
             _parentObject.SetActive(false);
         }
     }
     else if (mode == FlightUIMode.STAGING)
     {
         if (!_parentObject.activeSelf && BasicDeltaV_Settings.Instance.MoreBasicMode)
         {
             _parentObject.SetActive(!BasicDeltaV.Instance.SimpleRestrictions);
         }
     }
 }
Beispiel #7
0
 private void FlightUIModeChanged(FlightUIMode mode)
 {
     IsOrbital = mode == FlightUIMode.ORBITAL;
 }
Beispiel #8
0
 private void FlightUIModeChanged(FlightUIMode mode)
 {
     if (mode == FlightUIMode.ORBITAL)
         IsOrbital = true;
     else
         IsOrbital = false;
 }