public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(SimulationProcessor.LastStage.isp.ToString("F1") + "s", section.IsHud);
     }
 }
示例#2
0
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(TimeFormatter.ConvertToString(RendezvousProcessor.OrbitalPeriod, "F3"), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(SimulationProcessor.LastStage.deltaV.ToString("N0") + "m/s" + " / " + SimulationProcessor.LastStage.totalDeltaV.ToString("N0") + "m/s", section.IsHud);
     }
 }
示例#4
0
 public override void Draw(SectionModule section)
 {
     if (ImpactProcessor.ShowDetails)
     {
         this.DrawLine(ImpactProcessor.Biome, section.IsHud);
     }
 }
示例#5
0
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToDistance(RendezvousProcessor.SemiMajorAxis, 3), section.IsHud);
     }
 }
示例#6
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToMass(SimulationProcessor.LastStage.mass, SimulationProcessor.LastStage.totalMass), section.IsHud);
     }
 }
示例#7
0
 public override void Draw(SectionModule section)
 {
     if (!Double.IsInfinity(FlightGlobals.currentMainBody.sphereOfInfluence))
     {
         this.DrawLine(FlightGlobals.currentMainBody.sphereOfInfluence.ToDistance(), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToAngle(SimulationProcessor.LastStage.thrustOffsetAngle, 1), section.IsHud);
     }
 }
示例#9
0
 public override void Draw(SectionModule section)
 {
     if (ImpactProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToAngleDMS(ImpactProcessor.Longitude) + (ImpactProcessor.Longitude < 0.0 ? " W" : " E"), section.IsHud);
     }
 }
示例#10
0
 public override void Draw(SectionModule section)
 {
     if (ImpactProcessor.ShowDetails)
     {
         this.DrawLine(ImpactProcessor.Latitude.ToAngle(), section.IsHud);
     }
 }
示例#11
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(SimulationProcessor.LastStage.totalDeltaV.ToString("N0") + "m/s (" + TimeFormatter.ConvertToString(SimulationProcessor.LastStage.totalTime) + ")", section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (AtmosphericProcessor.ShowDetails)
     {
         this.DrawLine(AtmosphericProcessor.TerminalVelocity.ToSpeed(), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(TimeFormatter.ConvertToString(RendezvousProcessor.TimeToDescendingNode), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
        this.DrawLine(RendezvousProcessor.RelativeRadialVelocity.ToSpeed(), section.IsHud);
     }
 }
示例#15
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         DrawLine(FlightGlobals.ActiveVessel.vesselName);
     }
 }
示例#16
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToForce(SimulationProcessor.LastStage.actualThrust, SimulationProcessor.LastStage.thrust), section.IsHud);
     }
 }
示例#17
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToAcceleration(SimulationProcessor.LastStage.actualThrust / SimulationProcessor.LastStage.totalMass, SimulationProcessor.LastStage.thrust / SimulationProcessor.LastStage.totalMass), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(RendezvousProcessor.RelativeInclination.ToAngle(), section.IsHud);
     }
 }
示例#19
0
        public override void Draw(SectionModule section)
        {
            switch (ScienceUtil.GetExperimentSituation(FlightGlobals.ActiveVessel))
            {
                case ExperimentSituations.SrfLanded:
                    this.DrawLine("Landed");
                    break;

                case ExperimentSituations.SrfSplashed:
                    this.DrawLine("Splashed");
                    break;

                case ExperimentSituations.FlyingLow:
                    this.DrawLine("Flying Low");
                    break;

                case ExperimentSituations.FlyingHigh:
                    this.DrawLine("Flying High");
                    break;

                case ExperimentSituations.InSpaceLow:
                    this.DrawLine("In Space Low");
                    break;

                case ExperimentSituations.InSpaceHigh:
                    this.DrawLine("In Space High");
                    break;
            }
        }
示例#20
0
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(RendezvousProcessor.Distance.ToDistance(), section.IsHud);
     }
 }
示例#21
0
        /// <summary>
        ///     Draws the target selector structure.
        /// </summary>
        public override void Draw(SectionModule section)
        {
            if (FlightGlobals.fetch.VesselTarget == null)
            {
                if (this.vesselType == VesselType.Unknown && !this.typeIsBody)
                {
                    this.DrawSearch();
                    if (this.searchQuery.Length == 0)
                    {
                        this.DrawTypes();
                    }
                    else
                    {
                        this.DrawTargetList();
                    }
                }
                else
                {
                    this.DrawBackToTypes();
                    this.DrawTargetList();
                }
            }
            else
            {
                this.DrawTarget(section);
            }

            if (this.targetObject != FlightGlobals.fetch.VesselTarget)
            {
                this.targetObject = FlightGlobals.fetch.VesselTarget;
                this.ResizeRequested = true;
            }
        }
示例#22
0
 public override void Draw(SectionModule section)
 {
     if (ImpactProcessor.ShowDetails)
     {
         this.DrawLine(TimeFormatter.ConvertToString(ImpactProcessor.Time), section.IsHud);
     }
 }
示例#23
0
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(RendezvousProcessor.InterceptAngle.ToAngle(), section.IsHud);
     }
 }
示例#24
0
 public override void Draw(SectionModule section)
 {
     if (SimulationProcessor.ShowDetails)
     {
         this.DrawLine(Units.ToTorque(SimulationProcessor.LastStage.maxThrustTorque), section.IsHud);
     }
 }
 public override void Draw(SectionModule section)
 {
     if (RendezvousProcessor.ShowDetails)
     {
         this.DrawLine(RendezvousProcessor.AngleToDescendingNode.ToAngle(), section.IsHud);
     }
 }
示例#26
0
 public override void Draw(SectionModule section)
 {
     // Used to do this but the bug-fix to horizontalSrfSpeed in KSP 1.0.3 actually made it worse so workaround
     //this.DrawLine(FlightGlobals.ActiveVessel.horizontalSrfSpeed.ToSpeed(), section.IsHud);
     var ves = FlightGlobals.ActiveVessel;
     double horizSpeed = Math.Sqrt(ves.srfSpeed * ves.srfSpeed - ves.verticalSpeed * ves.verticalSpeed);
     this.DrawLine(horizSpeed.ToSpeed(), section.IsHud);
 }
        public override void Draw(SectionModule section)
        {
            if (!SuicideBurnProcessor.ShowDetails)
            {
                return;
            }

            this.DrawLine(SuicideBurnProcessor.Distance.ToDistance(), section.IsHud);
        }
示例#28
0
        public override void Draw(SectionModule section)
        {
            if (!ManoeuvreProcessor.ShowDetails)
            {
                return;
            }

            this.DrawLine("Node DeltaV (Total)", ManoeuvreProcessor.TotalDeltaV.ToSpeed() + " (" + (ManoeuvreProcessor.HasDeltaV ? "S" + ManoeuvreProcessor.FinalStage : "X") + ")", section.IsHud);
        }
示例#29
0
        public override void Draw(SectionModule section)
        {
            if (!ManoeuvreProcessor.ShowDetails)
            {
                return;
            }

            this.DrawLine("Node DeltaV (Radial)", ManoeuvreProcessor.RadialDeltaV.ToSpeed(), section.IsHud);
        }
        public override void Draw(SectionModule section)
        {
            if (!ManoeuvreProcessor.ShowDetails)
            {
                return;
            }

            this.DrawLine("Time to Node Burn", TimeFormatter.ConvertToString(ManoeuvreProcessor.UniversalTime - ManoeuvreProcessor.HalfBurnTime - Planetarium.GetUniversalTime()), section.IsHud);
        }