From: Kot <1192090+koteq@users.noreply.github.com> Date: Fri, 5 Jan 2024 05:18:09 +0000 (+0400) Subject: Fix atmos UI decimal separator bug (#23009) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=3d911a64c7789f1e1de0df94dd27a4f0fdf05dcf;p=space-station-14.git Fix atmos UI decimal separator bug (#23009) * Fix atmos UI inconsistent culture usage * Remove the need to pass localization manager --- diff --git a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs index 1087efd51d..1904e2b340 100644 --- a/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs +++ b/Content.Client/Atmos/UI/GasFilterBoundUserInterface.cs @@ -1,8 +1,8 @@ using Content.Client.Atmos.EntitySystems; using Content.Shared.Atmos; using Content.Shared.Atmos.Piping.Trinary.Components; +using Content.Shared.Localizations; using JetBrains.Annotations; -using Robust.Client.GameObjects; namespace Content.Client.Atmos.UI { @@ -50,7 +50,7 @@ namespace Content.Client.Atmos.UI private void OnFilterTransferRatePressed(string value) { - float rate = float.TryParse(value, out var parsed) ? parsed : 0f; + var rate = UserInputParser.TryFloat(value, out var parsed) ? parsed : 0f; SendMessage(new GasFilterChangeRateMessage(rate)); } diff --git a/Content.Client/Atmos/UI/GasFilterWindow.xaml b/Content.Client/Atmos/UI/GasFilterWindow.xaml index 6963a71d3d..861d447308 100644 --- a/Content.Client/Atmos/UI/GasFilterWindow.xaml +++ b/Content.Client/Atmos/UI/GasFilterWindow.xaml @@ -9,7 +9,7 @@