Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Source/Engines/UI/EngineConfigGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ protected void DrawConfigTable(IEnumerable<ModuleEngineConfigsBase.ConfigRowDefi
private void DrawHeaderRow(Rect headerRect)
{
float currentX = headerRect.x;

// Dynamic header and tooltip for survival column based on mode
string survivalHeader;
string survivalTooltip;
Expand Down Expand Up @@ -873,6 +873,10 @@ internal string GetThrustString(ConfigNode node)
float thrust = _module.scale * _techLevels.ThrustTL(node.GetValue(_module.thrustRating), node);
if (thrust >= 100f)
return $"{thrust:N0} kN";
if (thrust < 1e-3f)
return $"{thrust * 1e6f:N0} mN";
if (thrust < 0.01f)
return $"{thrust * 1e3f:N0} N";
return $"{thrust:N2} kN";
}

Expand Down Expand Up @@ -1098,11 +1102,11 @@ internal string GetSurvivalAtTimeString(ConfigNode node)
{
// Percentage mode: show TIME to reach the selected percentage
float targetProb = sliderPercentage / 100f;

// Find time for start and end reliability (no clustering/ignition for table display)
float timeStart = ChartMath.FindTimeForSurvivalProb(targetProb, ratedBurnTime, cycleReliabilityStart, cycleCurve, 10000f);
float timeEnd = ChartMath.FindTimeForSurvivalProb(targetProb, ratedBurnTime, cycleReliabilityEnd, cycleCurve, 10000f);

return $"<color={fadedOrange}>{ChartMath.FormatTime(timeStart)}</color> / <color={fadedGreen}>{ChartMath.FormatTime(timeEnd)}</color>";
}
else
Expand Down