Class UnitsPreferences
Last update: 09.03.2026Namespace: OpenTD.UserPreferences
Assembly: OpenTD.dll
Use to set the global units preferences.
public class UnitsPreferences : Preferences, IUpdatable
Inheritance
object ← TdConnected ← Preferences ← UnitsPreferences
Implements
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
UnitsPreferences()
Do not use.
public UnitsPreferences()
UnitsPreferences(ThermalDesktop)
public UnitsPreferences(ThermalDesktop _td)
Parameters
_td ThermalDesktop
Properties
DoNotScaleModelOnNextUpdate
public bool DoNotScaleModelOnNextUpdate { get; set; }
Property Value
EngUnitsPressurePSIAorGaugeIndex
public int EngUnitsPressurePSIAorGaugeIndex { get; set; }
Property Value
EngUnitsTemperatureIndex
public int EngUnitsTemperatureIndex { get; set; }
Property Value
SiUnitsTemperatureIndex
public int SiUnitsTemperatureIndex { get; set; }
Property Value
Units
public UnitsData Units { get; set; }
Property Value
UnitsThermalOnlyInterfaceOrENG_SI_controlled
public int UnitsThermalOnlyInterfaceOrENG_SI_controlled { get; set; }
Property Value
calculationOutputUnits
public int calculationOutputUnits { get; set; }
Property Value
Methods
Update()
Updates the TD entity with the latest client data.
public void Update()
UpdateFromTD()
Updates the client-side instance with the latest data from the TD entity.
public void UpdateFromTD()