static UserConfig()
 {
     DebugMode               = IniHelper.GetConfigSetting("General", "DebugMode", false);
     ThrustMultiplier        = IniHelper.GetConfigSetting("General", "ThrustMultiplier", 1.0f);
     ReverseThrustMultiplier = IniHelper.GetConfigSetting("General", "ReverseThrustMultiplier", 1.0f);
     ThrustRadius            = IniHelper.GetConfigSetting("General", "ThrustRadius", 1.0f);
     HeatHazeStrength        = IniHelper.GetConfigSetting("General", "HeatHazeStrength", 1.0f);
     UseThrottleExhaust      = IniHelper.GetConfigSetting("General", "UseThrottleExhaust", true);
 }
Esempio n. 2
0
 public static void LoadValues()
 {
     ShowObjects          = IniHelper.GetConfigSetting("General", "ShowObjects", true);
     ShowBuildings        = IniHelper.GetConfigSetting("General", "ShowBuildings", true);
     ShowNearbyList       = IniHelper.GetConfigSetting("General", "ShowNearbyList", true);
     ShowLODs             = IniHelper.GetConfigSetting("General", "ShowLODs", true);
     DrawAllObjects       = IniHelper.GetConfigSetting("General", "DrawAllObjects", true);
     ObjectSearchRadius   = IniHelper.GetConfigSetting("General", "ObjectSearchRadius", 10.0f);
     BuildingSearchRadius = IniHelper.GetConfigSetting("General", "BuildingSearchRadius", 10.0f);
     MaxBuildingsOnScreen = IniHelper.GetConfigSetting("General", "MaxBuildingsOnScreen", 35);
     MaxObjectsOnScreen   = IniHelper.GetConfigSetting("General", "MaxObjectsOnScreen", 30);
     ObjectColour         = IniHelper.GetConfigSetting("General", "ObjectColour", Color.DarkGoldenrod);
     BuildingColour       = IniHelper.GetConfigSetting("General", "BuildingColour", Color.DarkRed);
     ActivationKey        = IniHelper.GetConfigSetting("KeyBinds", "Activate", Keys.Y);
     StartOnPlayer        = IniHelper.GetConfigSetting("General", "StartOnPlayer", false);
 }