diff --git a/Source/CustomAvatar/UI/GeneralSettingsHost.cs b/Source/CustomAvatar/UI/GeneralSettingsHost.cs
index 76a1a51a..e177c6ed 100644
--- a/Source/CustomAvatar/UI/GeneralSettingsHost.cs
+++ b/Source/CustomAvatar/UI/GeneralSettingsHost.cs
@@ -240,11 +240,6 @@ private string ResizeModeFormatter(object value)
};
}
- private string MillimeterFormatter(object value)
- {
- return $"{(float)value * 100:0.#} cm";
- }
-
private string FloorHeightAdjustFormatter(object value)
{
if (value is not FloorHeightAdjustMode floorHeightAdjustMode)
@@ -261,28 +256,20 @@ private string FloorHeightAdjustFormatter(object value)
};
}
- private string HeightFormatter(float value)
+ private string CentimeterFormatter(float value)
{
- return $"{value + BeatSaberUtilities.kHeadPosToPlayerHeightOffset:0.00} m";
+ return $"{value * 100:0.#} cm";
}
+ private string HeightFormatter(float value) => CentimeterFormatter(value + BeatSaberUtilities.kHeadPosToPlayerHeightOffset);
+
+ private string ArmSpanFormatter(float value) => _armSpanMeasurer.isMeasuring ? $"Measuring... {CentimeterFormatter(value)}" : CentimeterFormatter(value);
+
private void OnMeasureHeightButtonClicked()
{
this.height = _trackingRig.eyeHeight;
}
- private string ArmSpanFormatter(float value)
- {
- if (_armSpanMeasurer.isMeasuring)
- {
- return $"Measuring... {value:0.00} m";
- }
- else
- {
- return $"{value:0.00} m";
- }
- }
-
private void OnMeasureArmSpanButtonClicked()
{
if (_armSpanMeasurer.isMeasuring)
diff --git a/Source/CustomAvatar/UI/Views/Settings.bsml b/Source/CustomAvatar/UI/Views/Settings.bsml
index 93991651..bedee236 100644
--- a/Source/CustomAvatar/UI/Views/Settings.bsml
+++ b/Source/CustomAvatar/UI/Views/Settings.bsml
@@ -38,7 +38,7 @@
-
+