public void OnDynamicBoneBtnClick(bool willBeOn) { this._modifiedPersonalSetting.IsUserDefinedGrade = false; this._modifiedPersonalSetting.IsUserDefinedVolatile = true; this._modifiedPersonalSetting.VolatileSetting.UseDynamicBone = willBeOn; GraphicsSettingUtil.EnableDynamicBone(willBeOn); this.ShowDynamicBone(this._modifiedPersonalSetting.VolatileSetting.UseDynamicBone, false); }
public static void ApplySettingConfig(ConfigGraphicsSetting setting) { GraphicsSettingUtil.SetTargetFrameRate(setting.TargetFrameRate); bool forceWhenDisable = true; GraphicsSettingUtil.EnablePostFX(setting.VolatileSetting.UsePostFX, forceWhenDisable); GraphicsSettingUtil.ApplyResolution(setting.ResolutionPercentage, setting.ResolutionQuality, setting.RecommendResolutionX, setting.RecommendResolutionY); GraphicsSettingUtil.SetPostEffectBufferSizeByQuality(setting.PostFxGradeBufferSize, setting.VolatileSetting.PostFXGrade); GraphicsSettingUtil.EnableHDR(setting.VolatileSetting.UseHDR); GraphicsSettingUtil.EnableDistortion(setting.VolatileSetting.UseDistortion); GraphicsSettingUtil.EnableReflection(setting.VolatileSetting.UseReflection); GraphicsSettingUtil.EnableFXAA(setting.VolatileSetting.UseFXAA); GraphicsSettingUtil.EnableDynamicBone(setting.VolatileSetting.UseDynamicBone); GraphicsSettingUtil.EnableStaticCloudMode(!setting.VolatileSetting.UseDynamicBone); }