From 1e6c2f1ce1f195872765a3aae4b33119cc515aba Mon Sep 17 00:00:00 2001 From: _sega Date: Mon, 26 Jan 2026 17:10:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D0=B7=D1=83=D0=BD=D0=BA=D0=BE=D0=B2=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B0=D0=B9=D1=82=20=D1=81=20=D0=BD=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D1=80=D0=BE=D0=B9=D0=BA=D0=B0=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Server/SettingsToHtml.cs | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Assets/Scripts/Server/SettingsToHtml.cs b/Assets/Scripts/Server/SettingsToHtml.cs index 5b9555b..e6761bf 100644 --- a/Assets/Scripts/Server/SettingsToHtml.cs +++ b/Assets/Scripts/Server/SettingsToHtml.cs @@ -1,5 +1,6 @@ using System.Collections; using System.Collections.Generic; +using System.Globalization; using System.Text; using UnityEngine; @@ -18,6 +19,11 @@ public class SettingsToHtml : MonoBehaviour string boolView = GetBoolView(setting); sb.AppendLine(boolView); } + else if(setting.Type == SettingType.Float) + { + string view = GetFloatView(setting); + sb.AppendLine(view); + } else { sb.AppendLine($"

{setting.Alias}: {GetStringSettingValue(setting)}

"); @@ -59,19 +65,25 @@ public class SettingsToHtml : MonoBehaviour { string res = string.Empty; res += "
"; - - - res += $""; - string ischecked = setting.BoolValue ? "checked" : ""; res += $""; - - res += "
"; return res; } + private static string GetFloatView(Setting setting) + { + string res = string.Empty; + res += "
"; + res += $""; + //res += $""; + res += $""; + res += "
"; + + return res; + + } }