add configuration options

This commit is contained in:
nothingTVatYT
2024-01-28 23:52:52 +01:00
parent 2625144945
commit 20dbe15651
2 changed files with 20 additions and 0 deletions

View File

@@ -6,4 +6,16 @@ public class Units
/// Factor of units per meter.
/// </summary>
public static readonly float Meters2Units = 100f;
// the next two bools could be cached values in the user preferences
/// <summary>
/// Set it to false to always show game units without any postfix
/// </summary>
public static bool UseUnitsFormatting = true;
/// <summary>
/// If set to true, the distance unit is chosen on the magnitude, otherwise it's meters
/// </summary>
public static bool AutomaticUnitsFormatting = true;
}