mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 18:27:24 +01:00
Add more Corgis to Glamourer.
This commit is contained in:
parent
3a63a1b22d
commit
34caf29b32
3 changed files with 18 additions and 12 deletions
|
|
@ -21,6 +21,8 @@ public enum HeightDisplayType
|
||||||
Metre,
|
Metre,
|
||||||
Wrong,
|
Wrong,
|
||||||
WrongFoot,
|
WrongFoot,
|
||||||
|
Corgi,
|
||||||
|
OlympicPool,
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Configuration : IPluginConfiguration, ISavable
|
public class Configuration : IPluginConfiguration, ISavable
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,13 @@ public partial class CustomizationDrawer
|
||||||
|
|
||||||
var heightString = _config.HeightDisplayType switch
|
var heightString = _config.HeightDisplayType switch
|
||||||
{
|
{
|
||||||
HeightDisplayType.Centimetre => FormattableString.Invariant($"({height * 100:F1} cm)"),
|
HeightDisplayType.Centimetre => FormattableString.Invariant($"({height * 100:F1} cm)"),
|
||||||
HeightDisplayType.Metre => FormattableString.Invariant($"({height:F2} m)"),
|
HeightDisplayType.Metre => FormattableString.Invariant($"({height:F2} m)"),
|
||||||
HeightDisplayType.Wrong => FormattableString.Invariant($"({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}'')",
|
||||||
_ => FormattableString.Invariant($"({height})"),
|
HeightDisplayType.Corgi => FormattableString.Invariant($"({height * 100 / 40.0:F1} Corgis)"),
|
||||||
|
HeightDisplayType.OlympicPool => FormattableString.Invariant($"({height / 3.0:F3} Pools)"),
|
||||||
|
_ => FormattableString.Invariant($"({height})"),
|
||||||
};
|
};
|
||||||
ImGui.TextUnformatted(heightString);
|
ImGui.TextUnformatted(heightString);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -401,14 +401,16 @@ public class SettingsTab(
|
||||||
ImGuiUtil.HoverTooltip(tt);
|
ImGuiUtil.HoverTooltip(tt);
|
||||||
}
|
}
|
||||||
|
|
||||||
private string HeightDisplayTypeName(HeightDisplayType type)
|
private static string HeightDisplayTypeName(HeightDisplayType type)
|
||||||
=> type switch
|
=> type switch
|
||||||
{
|
{
|
||||||
HeightDisplayType.None => "Do Not Display",
|
HeightDisplayType.None => "Do Not Display",
|
||||||
HeightDisplayType.Centimetre => "Centimetres (000.0 cm)",
|
HeightDisplayType.Centimetre => "Centimetres (000.0 cm)",
|
||||||
HeightDisplayType.Metre => "Metres (0.00 m)",
|
HeightDisplayType.Metre => "Metres (0.00 m)",
|
||||||
HeightDisplayType.Wrong => "Inches (00.0 in)",
|
HeightDisplayType.Wrong => "Inches (00.0 in)",
|
||||||
HeightDisplayType.WrongFoot => "Feet (0'00'')",
|
HeightDisplayType.WrongFoot => "Feet (0'00'')",
|
||||||
_ => string.Empty,
|
HeightDisplayType.Corgi => "Corgis (0.0 Corgis)",
|
||||||
|
HeightDisplayType.OlympicPool => "Olympic-size swimming Pools (0.000 Pools)",
|
||||||
|
_ => string.Empty,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue