//probably a dumb idea- but sometimes it just resets public void Update() { if (MyAPIGateway.Session != null) { PPSettings.Apply(); } }
public void ApplySettings() { PPSettings.Static.EnableAmbientOcclusion = ambient.IsChecked; PPSettings.Static.EnablePlayerShake = playerShake.IsChecked; PPSettings.Static.EnableEyeAdaption = eyeadaption.IsChecked; PPSettings.Static.EnableVignette = vignette.IsChecked; PPSettings.Static.EnableFullbright = fullbright.IsChecked; PPSettings.Static.EnableBloom = bloom.IsChecked; PPSettings.Static.EnableChromaticAberration = chromatic.IsChecked; PPSettings.Static.EnableSunGlare = glare.IsChecked; PPSettings.Static.BloomMult = bloomMulti.Value; PPSettings.Static.BloomSize = bloomSize.Value; PPSettings.Static.BloomScale = bloomSlidr.Value; PPSettings.Static.BloomDirtRatio = bloomDirt.Value; PPSettings.Static.VignetteLength = vignetteLength.Value; PPSettings.Static.VignetteStart = vignetteStart.Value; PPSettings.Static.ChromaticFactor = chromaticFactor.Value; PPSettings.Static.Brightness = brightness.Value; PPSettings.Static.Saturation = saturation.Value; PPSettings.Static.HeadlampColor = headlamp.Color; PPSettings.Apply(); }