Skip to content

Commit 8be4174

Browse files
committed
Engine thrust units
1 parent 881c8fb commit 8be4174

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Source/Engines/UI/EngineConfigGUI.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ protected void DrawConfigTable(IEnumerable<ModuleEngineConfigsBase.ConfigRowDefi
460460
private void DrawHeaderRow(Rect headerRect)
461461
{
462462
float currentX = headerRect.x;
463-
463+
464464
// Dynamic header and tooltip for survival column based on mode
465465
string survivalHeader;
466466
string survivalTooltip;
@@ -873,6 +873,10 @@ internal string GetThrustString(ConfigNode node)
873873
float thrust = _module.scale * _techLevels.ThrustTL(node.GetValue(_module.thrustRating), node);
874874
if (thrust >= 100f)
875875
return $"{thrust:N0} kN";
876+
if (thrust < 1e-3f)
877+
return $"{thrust * 1e6f:N0} mN";
878+
if (thrust < 0.01f)
879+
return $"{thrust * 1e3f:N0} N";
876880
return $"{thrust:N2} kN";
877881
}
878882

@@ -1098,11 +1102,11 @@ internal string GetSurvivalAtTimeString(ConfigNode node)
10981102
{
10991103
// Percentage mode: show TIME to reach the selected percentage
11001104
float targetProb = sliderPercentage / 100f;
1101-
1105+
11021106
// Find time for start and end reliability (no clustering/ignition for table display)
11031107
float timeStart = ChartMath.FindTimeForSurvivalProb(targetProb, ratedBurnTime, cycleReliabilityStart, cycleCurve, 10000f);
11041108
float timeEnd = ChartMath.FindTimeForSurvivalProb(targetProb, ratedBurnTime, cycleReliabilityEnd, cycleCurve, 10000f);
1105-
1109+
11061110
return $"<color={fadedOrange}>{ChartMath.FormatTime(timeStart)}</color> / <color={fadedGreen}>{ChartMath.FormatTime(timeEnd)}</color>";
11071111
}
11081112
else

0 commit comments

Comments
 (0)