ignore culture when saving int and float settings

This commit is contained in:
in0finite 2019-11-05 15:14:09 +01:00
parent c99cf04494
commit d8480a2522

View file

@ -115,6 +115,12 @@ namespace SanAndreasUnity.UI {
value = Mathf.Clamp(value, this.minValue, this.maxValue);
return value;
}
public override string SaveAsString (int value)
{
return value.ToString (System.Globalization.CultureInfo.InvariantCulture);
}
}
public class FloatInput : Input<float>
@ -141,6 +147,12 @@ namespace SanAndreasUnity.UI {
value = Mathf.Clamp(value, this.minValue, this.maxValue);
return value;
}
public override string SaveAsString (float value)
{
return value.ToString (System.Globalization.CultureInfo.InvariantCulture);
}
}
public class BoolInput : Input<bool>