Skip to content

Commit

Permalink
Add tooltip to plans vessel showing vessel cost. Close #1977
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanKell committed Jul 2, 2023
1 parent 3c01249 commit 1eca4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private static void DrawBuildPlansWindow(int id)
PopupDialog.SpawnPopupDialog(new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), diag, false, HighLogic.UISkin);
}

if (GUILayout.Button(b.shipName))
if (GUILayout.Button(new GUIContent(b.shipName, $"Cost: √{b.cost:N0}")))
{
if (lcMode)
{
Expand Down

0 comments on commit 1eca4de

Please sign in to comment.