mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-15 00:37:09 +00:00
ignore culture when saving int and float settings
This commit is contained in:
parent
c99cf04494
commit
d8480a2522
1 changed files with 12 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue