Exemple #1
0
        public static void SavePreferences()
        {
            PluginConfiguration config = PluginConfiguration.CreateForType <PrefLoader>();

            //config.SetVal("buoyancyMultiplicator", Preferences.buoyancyMultiplicator);

            config.SetVal("showVolumeInfoInEditor", Preferences.showVolumeInfoInEditor);
            config.SetVal("showVolumeInfoInFlight", Preferences.showVolumeInfoInFlight);
            config.SetVal("showTemperatureInEditor", Preferences.showTemperatureInEditor);
            //config.SetVal("showTemperatureInFlight", Preferences.showTemperatureInFlight);
            config.SetVal("showAbsPressureInEditor", Preferences.showAbsPressureInEditor);
            config.SetVal("showAbsPressureInFlight", Preferences.showAbsPressureInFlight);
            config.SetVal("showBuoyancyInEditor", Preferences.showBuoyancyInEditor);
            config.SetVal("showBuoyancyInFlight", Preferences.showBuoyancyInFlight);
            config.SetVal("showVesselBuoyancyInEditor", Preferences.showVesselBuoyancyInEditor);
            config.SetVal("showVesselBuoyancyInFlight", Preferences.showVesselBuoyancyInFlight);
            config.SetVal("showVesselMassInEditor", Preferences.showVesselMassInEditor);
            config.SetVal("showVesselMassInFlight", Preferences.showVesselMassInFlight);
            config.SetVal("showGravPullInEditor", Preferences.showGravPullInEditor);
            config.SetVal("showGravPullInFlight", Preferences.showGravPullInFlight);
            config.SetVal("debugLevel", Preferences.debugLevel);
            //config.SetVal("pressureDestruction", Preferences.pressureDestruction);
            //config.SetVal("alwaysControllable", Preferences.alwaysControllable);

            config.save();
        }