mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +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
|
||||
{
|
||||
HeightDisplayType.Centimetre => $"({height * 100:F1} cm)",
|
||||
HeightDisplayType.Metre => $"({height:F2} m)",
|
||||
HeightDisplayType.Wrong => $"({height * 100 / 2.539:F1} in)",
|
||||
HeightDisplayType.Centimetre => FormattableString.Invariant($"({height * 100:F1} cm)"),
|
||||
HeightDisplayType.Metre => FormattableString.Invariant($"({height:F2} m)"),
|
||||
HeightDisplayType.Wrong => FormattableString.Invariant($"({height * 100 / 2.539:F1} in)"),
|
||||
HeightDisplayType.WrongFoot => $"({(int)(height * 100 / 2.539 / 12)}'{(int)(height * 100 / 2.539) % 12}'')",
|
||||
_ => $"({height})",
|
||||
_ => FormattableString.Invariant($"({height})"),
|
||||
};
|
||||
ImGui.TextUnformatted(heightString);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue