public static void ApplyPersonalContrastDelta() { if (Singleton <MiHoYoGameData> .Instance != null) { GraphicsSettingUtil.SetPostFXContrast(Singleton <MiHoYoGameData> .Instance.GeneralLocalData.PersonalGraphicsSetting.ContrastDelta); } }
public void OnContrastDeltaChanged() { this._contrastDelta = ((this._contrastSlider.value - this._contrastShowMinValue) / 20f) - 1f; GraphicsSettingUtil.SetPostFXContrast(this._contrastDelta); this.ShowContrast((int)this._contrastSlider.value); }