Esempio n. 1
0
 public void OnPersonalGradeBtnClick()
 {
     this._modifiedPersonalSetting.IsUserDefinedGrade = false;
     if (Singleton <MiHoYoGameData> .Instance.GeneralLocalData.PersonalGraphicsSetting.IsUserDefinedVolatile)
     {
         GraphicsSettingData.CopyPersonalGraphicsConfig(ref this._modifiedPersonalSetting);
     }
     else
     {
         GraphicsSettingData.CopyToPersonalGraphicsConfig(GraphicsSettingData.GetGraphicsRecommendCompleteConfig(), ref this._modifiedPersonalSetting);
     }
     GraphicsSettingData.ApplySettingConfig(GraphicsSettingData.GetGraphicsPersonalSettingConfig(this._modifiedPersonalSetting));
     this._modifiedPersonalSetting.IsUserDefinedVolatile = true;
     this._modifiedPersonalSetting.IsEcoMode             = false;
     this.ShowPersonalConfig();
     this.SetupEcoMode();
 }