public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails && FlightGlobals.ActiveVessel.atmDensity > 0.0) { DrawLine(ThermalProcessor.ConvectionFlux.ToFlux(), section.IsHud); } }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails) { this.DrawLine(Units.ToAngle(SimulationProcessor.LastStage.thrustOffsetAngle, 1), section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.ActiveVessel.atmDensity > 0.0) { DrawLine(FlightGlobals.ActiveVessel.mach.ToMach(), section.IsHud); } }
public override void Draw(SectionModule section) { if (AtmosphericProcessor.ShowDetails) { DrawLine(AtmosphericProcessor.Efficiency.ToPercent(), section.IsHud); } }
public override void Draw(SectionModule section) { if (RendezvousProcessor.ShowDetails) { this.DrawLine(RendezvousProcessor.RelativeRadialVelocity.ToSpeed(), section.IsHud); } }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails) { DrawLine(FlightGlobals.ActiveVessel.vesselName); } }
public override void Draw(SectionModule section) { if (ImpactProcessor.ShowDetails) { this.DrawLine(Units.ToAngleDMS(ImpactProcessor.Latitude) + (ImpactProcessor.Latitude < 0 ? " S" : " N"), section.IsHud); } }
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 (ThermalProcessor.ShowDetails) { DrawLine(ThermalProcessor.InternalFlux.ToFlux(), section.IsHud); } }
public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails) { DrawLine(ThermalProcessor.CriticalTemperaturePercentage.ToPercent(), section.IsHud); } }
public override void Draw(SectionModule section) { if (ImpactProcessor.ShowDetails) { this.DrawLine(ImpactProcessor.Biome, section.IsHud); } }
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; } }
public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails) { DrawLine(Units.ToTemperature(ThermalProcessor.CoolestSkinTemperature, ThermalProcessor.CoolestSkinTemperatureMax), section.IsHud); } }
public override void Draw(SectionModule section) { GUILayout.BeginHorizontal(); GUILayout.Label("Vectored Thrust: ", this.NameStyle); SimManager.vectoredThrust = GUILayout.Toggle(SimManager.vectoredThrust, "ENABLED", this.ButtonStyle); GUILayout.EndHorizontal(); }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails) { this.DrawLine(Units.ToMass(SimulationProcessor.LastStage.mass, SimulationProcessor.LastStage.totalMass), section.IsHud); } }
public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails) { DrawLine(ThermalProcessor.CoolestPartName, section.IsHud); } }
public override void Draw(SectionModule section) { if (ImpactProcessor.ShowDetails) { this.DrawLine(TimeFormatter.ConvertToString(ImpactProcessor.Time), section.IsHud); } }
public override void Draw(SectionModule section) { if (RendezvousProcessor.ShowDetails) { this.DrawLine(RendezvousProcessor.PeriapsisHeight.ToDistance(), section.IsHud); } }
public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails) { DrawLine(ThermalProcessor.RadiationFlux.ToFlux(), section.IsHud); } }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails) { this.DrawLine(Units.ConcatF(SimulationProcessor.LastStage.partCount, SimulationProcessor.LastStage.totalPartCount, 0), section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.ActiveVessel.mainBody.atmosphere) { this.DrawLine(FlightGlobals.ActiveVessel.mainBody.atmosphereDepth.ToDistance(), section.IsHud); } }
public override void Draw(SectionModule section) { if (RendezvousProcessor.ShowDetails) { this.DrawLine(RendezvousProcessor.PhaseAngle.ToAngle(), section.IsHud); } }
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 (SimulationProcessor.ShowDetails) { this.DrawLine(Units.ToForce(SimulationProcessor.LastStage.actualThrust, SimulationProcessor.LastStage.thrust), section.IsHud); } }
public override void Draw(SectionModule section) { if (ThermalProcessor.ShowDetails) { DrawLine(ThermalProcessor.CriticalPartName, section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.ActiveVessel.mainBody.atmosphere) { this.DrawLine(FlightGlobals.ActiveVessel.mainBody.scienceValues.flyingAltitudeThreshold.ToDistance(), section.IsHud); } }
/// <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; } }
public override void Draw(SectionModule section) { // Vis-viva: v^2 = GM(2/r - 1/a) // All this is easily got from the ships orbit (and reference body) String str; Orbit orbit = FlightGlobals.ship_orbit; if (orbit.eccentricity > 1.0) { str = "---m/s"; } else { double speedsqr = orbit.referenceBody.gravParameter * ((2 / orbit.ApR) - (1 / orbit.semiMajorAxis)); if (Double.IsNaN(speedsqr) || speedsqr < 0) { str = "---m/s"; // Don't think this is possible barring bugs in the Orbit class } else { str = Math.Sqrt(speedsqr).ToSpeed(); } } this.DrawLine(str, section.IsHud); }
public override void Draw(SectionModule section) { if (AtmosphericProcessor.ShowDetails) { DrawLine(AtmosphericProcessor.StaticPressure.ToPressure(), section.IsHud); } }
public override void Draw(SectionModule section) { GUILayout.BeginHorizontal(); GUILayout.Label("Log Simulation: ", this.NameStyle); SimManager.logOutput = GUILayout.Toggle(SimManager.logOutput, "ENABLED", this.ButtonStyle); GUILayout.EndHorizontal(); }
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 (ThermalProcessor.ShowDetails) { DrawLine(Units.ToTemperature(ThermalProcessor.CoolestTemperature, ThermalProcessor.CoolestTemperatureMax), section.IsHud); } }
public override void Draw(SectionModule section) { if (RendezvousProcessor.ShowDetails) { this.DrawLine(Units.ToDistance(RendezvousProcessor.SemiMajorAxis, 3), section.IsHud); } }
public override void Draw(SectionModule section) { if (ImpactProcessor.ShowDetails) { this.DrawLine(ImpactProcessor.Altitude.ToDistance(), section.IsHud); } }
public override void Draw(SectionModule section) { if (RendezvousProcessor.ShowDetails) { this.DrawLine(TimeFormatter.ConvertToString(RendezvousProcessor.TimeToRendezvous), section.IsHud); } }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails) { this.DrawLine(SimulationProcessor.LastStage.deltaV.ToString("N0") + "m/s (" + TimeFormatter.ConvertToString(SimulationProcessor.LastStage.time) + ")", section.IsHud); } }
public override void Draw(SectionModule section) { var target = FlightGlobals.fetch.VesselTarget?.GetVessel(); if (target != null) { double longitude = AngleHelper.Clamp180(target.longitude); DrawLine(Units.ToAngleDMS(longitude) + (longitude < 0.0 ? "W" : " E"), section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.ActiveVessel.terrainAltitude > 0.0 || FlightGlobals.ActiveVessel.situation == Vessel.Situations.SPLASHED) { DrawLine((FlightGlobals.ship_altitude - FlightGlobals.ActiveVessel.terrainAltitude).ToDistance(), section.IsHud); } else { DrawLine((FlightGlobals.ship_altitude).ToDistance(), section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.ActiveVessel.terrainAltitude > 0.0) { this.DrawLine((FlightGlobals.ship_altitude - FlightGlobals.ActiveVessel.terrainAltitude).ToDistance(), section.IsHud); } else { this.DrawLine((FlightGlobals.ship_altitude).ToDistance(), section.IsHud); } }
public override void Draw(SectionModule section) { if (SimulationProcessor.ShowDetails == false || StageManager.Instance == null) { return; } foreach (Stage stage in SimulationProcessor.Stages.Where(stage => stage.deltaV > 0 || stage.number == StageManager.CurrentStage)) { DrawLine("DeltaV (S" + stage.number + ")", stage.deltaV.ToString("N0") + "m/s (" + TimeFormatter.ConvertToString(stage.time) + ")", section.IsHud); } }
public override void Draw(SectionModule section) { if (FlightGlobals.currentMainBody == null || SimulationProcessor.LastStage == null || !SimulationProcessor.ShowDetails) { return; } m_Gravity = FlightGlobals.currentMainBody.gravParameter / Math.Pow(FlightGlobals.currentMainBody.Radius, 2); m_Actual = (SimulationProcessor.LastStage.actualThrust / (SimulationProcessor.LastStage.totalMass * m_Gravity)).ToString("F2"); m_Total = (SimulationProcessor.LastStage.thrust / (SimulationProcessor.LastStage.totalMass * m_Gravity)).ToString("F2"); DrawLine("TWR (Surface)", m_Actual + " / " + m_Total, section.IsHud); }
public override void Draw(SectionModule section) { double angle = AngleHelper.Clamp180(FlightGlobals.ship_longitude); DrawLine(Units.ToAngleDMS(angle) + (angle < 0.0 ? " W" : " E"), section.IsHud); }
public SectionInfo( int id, string name, string title, SectionInfo parent, int order, bool visible, bool syndicated, string theme, string style, SectionModule module, string owner, DateTime touched, CommunityInfo community ) : this(id, name, title, (parent == null) ? RootSection.Identity : parent.Identity, order, visible, syndicated, theme, style, module.Identity, owner, touched, community.Identity) { }
public override void Draw(SectionModule section) { this.DrawLine(Units.ToAngle(AttitudeProcessor.PitchRate) + "/sec", section.IsHud); }
/// <summary> /// Creates a section window, adds it to the FlightEngineerCore and returns a reference to it. /// </summary> public SectionWindow AddSectionWindow(SectionModule section) { try { var window = this.gameObject.AddComponent<SectionWindow>(); window.ParentSection = section; window.WindowPosition = new Rect(section.FloatingPositionX, section.FloatingPositionY, 0, 0); this.SectionWindows.Add(window); return window; } catch (Exception ex) { MyLogger.Exception(ex); return null; } }
/// <summary> /// Creates a section editor, adds it to the FlightEngineerCore and returns a reference to it. /// </summary> public SectionEditor AddSectionEditor(SectionModule section) { try { var editor = this.gameObject.AddComponent<SectionEditor>(); editor.ParentSection = section; editor.Position = new Rect(section.EditorPositionX, section.EditorPositionY, SectionEditor.Width, SectionEditor.Height); this.SectionEditors.Add(editor); return editor; } catch (Exception ex) { MyLogger.Exception(ex); return null; } }
public override void Draw(SectionModule section) { DrawLine((FlightGlobals.ship_orbit.meanAnomalyAtEpoch * Units.RAD_TO_DEG).ToAngle(), section.IsHud); }
public override void Draw(SectionModule section) { this.DrawLine(Units.ToAngle(AttitudeProcessor.Heading), section.IsHud); }
/// <summary> /// Creates and initialises a new custom section. /// </summary> public ISectionModule NewCustomSection() { SectionModule section = new SectionModule { Name = "Custom " + (SectionLibrary.CustomSections.Count + 1), Abbreviation = "CUST " + (SectionLibrary.CustomSections.Count + 1), IsVisible = true, IsCustom = true, IsEditorVisible = true }; SectionLibrary.CustomSections.Add(section); return section; }