From 1dadb04cbee8ee857629f6a513f13ac7682a93a3 Mon Sep 17 00:00:00 2001 From: RMROC451 Date: Mon, 1 Sep 2025 12:51:29 -0500 Subject: [PATCH] round to whole number vs showing partial full mph in car inspector consist info (when caboose is nearby) --- TweaksAndThings/Patches/CarInspector_PopulateCarPanel_Patch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TweaksAndThings/Patches/CarInspector_PopulateCarPanel_Patch.cs b/TweaksAndThings/Patches/CarInspector_PopulateCarPanel_Patch.cs index 7bd4199..235dd2f 100644 --- a/TweaksAndThings/Patches/CarInspector_PopulateCarPanel_Patch.cs +++ b/TweaksAndThings/Patches/CarInspector_PopulateCarPanel_Patch.cs @@ -88,7 +88,7 @@ internal class CarInspector_PopulateCarPanel_Patch int consistLength = consist.Count(); int tonnage = LocomotiveControlsHoverArea.CalculateTonnage(consist); int lengthInMeters = UnityEngine.Mathf.CeilToInt(LocomotiveControlsHoverArea.CalculateLengthInMeters(consist.ToList()) * 3.28084f); - var newSubTitle = () => string.Format("{0}, {1:N0}T, {2:N0}ft, {3:0.0} mph", consistLength.Pluralize("car"), tonnage, lengthInMeters, __instance._car.VelocityMphAbs); + var newSubTitle = () => string.Format("{0}, {1:N0}T, {2:N0}ft, {3:N0} mph", consistLength.Pluralize("car"), tonnage, lengthInMeters, __instance._car.VelocityMphAbs); field.AddLabel(() => newSubTitle(), UIPanelBuilder.Frequency.Fast) .Tooltip("Consist Info", "Reflects info about consist.").FlexibleWidth();