mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-13 12:14:18 +01:00
Fix height display.
This commit is contained in:
parent
78d7aef13f
commit
e0447b1ed4
1 changed files with 4 additions and 4 deletions
|
|
@ -43,11 +43,11 @@ public partial class CustomizationDrawer
|
||||||
|
|
||||||
var heightString = _config.HeightDisplayType switch
|
var heightString = _config.HeightDisplayType switch
|
||||||
{
|
{
|
||||||
HeightDisplayType.Centimetre => $"({height * 100:F1} cm)",
|
HeightDisplayType.Centimetre => FormattableString.Invariant($"({height * 100:F1} cm)"),
|
||||||
HeightDisplayType.Metre => $"({height:F2} m)",
|
HeightDisplayType.Metre => FormattableString.Invariant($"({height:F2} m)"),
|
||||||
HeightDisplayType.Wrong => $"({height * 100 / 2.539:F1} in)",
|
HeightDisplayType.Wrong => FormattableString.Invariant($"({height * 100 / 2.539:F1} in)"),
|
||||||
HeightDisplayType.WrongFoot => $"({(int)(height * 100 / 2.539 / 12)}'{(int)(height * 100 / 2.539) % 12}'')",
|
HeightDisplayType.WrongFoot => $"({(int)(height * 100 / 2.539 / 12)}'{(int)(height * 100 / 2.539) % 12}'')",
|
||||||
_ => $"({height})",
|
_ => FormattableString.Invariant($"({height})"),
|
||||||
};
|
};
|
||||||
ImGui.TextUnformatted(heightString);
|
ImGui.TextUnformatted(heightString);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue