From: TsjipTsjip <19798667+TsjipTsjip@users.noreply.github.com> Date: Fri, 12 Apr 2024 20:47:44 +0000 (+0200) Subject: Health analyzer UI unit correction (#26903) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=998bf453684ed91ae5971e41be72820c87b441ef;p=space-station-14.git Health analyzer UI unit correction (#26903) Correct Kelvin displayed on health analyzer UI, use T0C constant. --- diff --git a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs index 1d8d415bab..0cb3ad144d 100644 --- a/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs +++ b/Content.Client/HealthAnalyzer/UI/HealthAnalyzerWindow.xaml.cs @@ -1,5 +1,6 @@ using System.Linq; using System.Numerics; +using Content.Shared.Atmos; using Content.Client.UserInterface.Controls; using Content.Shared.Damage; using Content.Shared.Damage.Prototypes; @@ -79,7 +80,7 @@ namespace Content.Client.HealthAnalyzer.UI ); Temperature.Text = Loc.GetString("health-analyzer-window-entity-temperature-text", - ("temperature", float.IsNaN(msg.Temperature) ? "N/A" : $"{msg.Temperature - 273f:F1} °C ({msg.Temperature:F1} °K)") + ("temperature", float.IsNaN(msg.Temperature) ? "N/A" : $"{msg.Temperature - Atmospherics.T0C:F1} °C ({msg.Temperature:F1} K)") ); BloodLevel.Text = Loc.GetString("health-analyzer-window-entity-blood-level-text",