コード例 #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();
 }
コード例 #2
0
 private void ShowPersonalConfig()
 {
     this.EnableAllConfigBtns(true);
     this.ShowPersonalGradeInfo();
     if (!this._modifiedPersonalSetting.IsUserDefinedGrade || !this._modifiedPersonalSetting.IsUserDefinedVolatile)
     {
         if (this._modifiedPersonalSetting.IsUserDefinedGrade || this._modifiedPersonalSetting.IsUserDefinedVolatile)
         {
             if (this._modifiedPersonalSetting.IsUserDefinedGrade)
             {
                 this.ShowRecommendCompleteConfig(this._modifiedPersonalSetting.RecommendGrade);
             }
             else
             {
                 this.ShowGraphicsSettingConfig(this._modifiedPersonalSetting, false);
             }
         }
         else
         {
             ConfigGraphicsSetting graphicsPersonalSettingConfig = GraphicsSettingData.GetGraphicsPersonalSettingConfig(this._modifiedPersonalSetting);
             this.ShowGraphicsSettingConfig(graphicsPersonalSettingConfig, false);
         }
     }
 }