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; + + } }