From 1eca4de9685b619dfb0ee07347ab1d1d45789543 Mon Sep 17 00:00:00 2001 From: NathanKell Date: Sun, 2 Jul 2023 14:35:45 -0700 Subject: [PATCH] Add tooltip to plans vessel showing vessel cost. Close #1977 --- Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs b/Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs index 9192163db49..c700f73ade5 100644 --- a/Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs +++ b/Source/KerbalConstructionTime/GUI/GUI_BuildPlans.cs @@ -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) {