Skip to content

Commit

Permalink
Show vessel BP cost if debug toolbar is up
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Jul 16, 2023
1 parent 32ad6e8 commit 6a0f359
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/KerbalConstructionTime/GUI/GUI_Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ private static void RenderBuildMode()

RenderBuildRateInputRow(buildPoints, rateWithCurEngis);

if (KSP.UI.Screens.DebugToolbar.DebugScreenSpawner.Instance?.screen?.isShown ?? false)
GUILayout.Label($"BP Cost: {buildPoints:N0}");

if (double.TryParse(BuildRateForDisplay, out double bR))
{
double buildTime = buildPoints / bR;
Expand Down

0 comments on commit 6a0f359

Please sign in to comment.