public override void Draw()
 {
     GUILayout.BeginHorizontal();
     if (WRP != null)
     {
         WRP.Draw();
     }
     if (MAP != null)
     {
         MAP.Draw();
     }
     if (MVA != null)
     {
         MVA.Draw();
     }
     if (ORB != null)
     {
         ORB.Draw();
     }
     if (REN != null)
     {
         REN.Draw();
     }
     if (DEO != null)
     {
         DEO.Draw();
     }
                 #if DEBUG
     if (Utils.ButtonSwitch("DBG", ref TrajectoryCalculator.setp_by_step_computation,
                            "Toggles step-by-step trajectory computation", GUILayout.ExpandWidth(false)) &&
         TrajectoryCalculator.setp_by_step_computation)
     {
         MapView.EnterMapView();
     }
                 #endif
     if (PN != null)
     {
         TCAGui.NavigationControls.AddSingleWaypointInMapView();
     }
     GUILayout.Label(new GUIContent(VSL.Info.Countdown >= 0?
                                    string.Format("{0:F1}s", VSL.Info.Countdown) : "",
                                    "Countdown"),
                     VSL.Info.Countdown > 10? Styles.white : Styles.red,
                     GUILayout.ExpandWidth(true));
     GUILayout.Label(new GUIContent(VSL.Info.TTB >= 0?
                                    string.Format("{0:F1}s", VSL.Info.TTB) : "",
                                    "Thrust Duration"),
                     Styles.yellow, GUILayout.ExpandWidth(true));
     GUILayout.EndHorizontal();
 }
Beispiel #2
0
 public override void Draw()
 {
     GUILayout.BeginHorizontal();
     if (MVA != null)
     {
         MVA.Draw();
     }
     GUILayout.EndHorizontal();
     if (PN != null && UI.NAV != null)
     {
         UI.NAV.TargetUI();
     }
     GUILayout.BeginHorizontal();
     if (ORB != null)
     {
         ORB.Draw();
     }
     if (REN != null)
     {
         REN.Draw();
     }
     if (DEO != null)
     {
         DEO.Draw();
     }
     GUILayout.EndHorizontal();
     if (ORB != null && ORB.ShowOptions && ORB.ControlsActive)
     {
         ORB.DrawOptions();
     }
     if (REN != null && REN.ShowOptions && REN.ControlsActive)
     {
         REN.DrawOptions();
         REN.DrawBestTrajectories();
     }
     if (DEO != null && DEO.ShowOptions && DEO.ControlsActive)
     {
         DEO.DrawOptions();
     }
     #if DEBUG
     if (Utils.ButtonSwitch("DBG", ref TrajectoryCalculator.setp_by_step_computation,
                            "Toggles step-by-step trajectory computation", GUILayout.ExpandWidth(true)) &&
         TrajectoryCalculator.setp_by_step_computation)
     {
         MapView.EnterMapView();
     }
     #endif
 }
 public override void Draw()
 {
     GUILayout.BeginHorizontal();
     if (MVA != null)
     {
         MVA.Draw();
     }
     GUILayout.EndHorizontal();
     if (PN != null && UI.NAV != null)
     {
         UI.NAV.TargetUI();
     }
     GUILayout.BeginHorizontal();
     if (ORB != null)
     {
         ORB.Draw();
     }
     if (REN != null)
     {
         REN.Draw();
     }
     if (DEO != null)
     {
         DEO.Draw();
     }
     GUILayout.EndHorizontal();
     if (DEO != null && CFG.AP2[Autopilot2.Deorbit])
     {
         DEO.DrawDeorbitSettings();
     }
                 #if DEBUG
     if (Utils.ButtonSwitch("DBG", ref TrajectoryCalculator.setp_by_step_computation,
                            "Toggles step-by-step trajectory computation", GUILayout.ExpandWidth(true)) &&
         TrajectoryCalculator.setp_by_step_computation)
     {
         MapView.EnterMapView();
     }
                 #endif
 }