Exemplo n.º 1
0
 public void SetupView(bool inLevelSimpleSetting = false)
 {
     this.isInLevelSimpleSetting   = inLevelSimpleSetting;
     this._modifiedPersonalSetting = new ConfigGraphicsPersonalSetting();
     GraphicsSettingData.CopyPersonalGraphicsConfig(ref this._modifiedPersonalSetting);
     this.ResetView();
 }
Exemplo n.º 2
0
        public void SwitchEcoMode()
        {
            GraphicsSettingData.CopyPersonalGraphicsConfig(!this._modifiedPersonalSetting.IsEcoMode, ref this._modifiedPersonalSetting);
            GraphicsSettingData.SavePersonalConfigIgnoreContrast(this._modifiedPersonalSetting);
            this.ResetView();
            string textID = !this._modifiedPersonalSetting.IsEcoMode ? "Menu_SettingEcoModeOffTip" : "Menu_SettingEcoModeOnTip";

            Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(LocalizationGeneralLogic.GetText(textID, new object[0]), 2f), UIType.Any);
        }
Exemplo n.º 3
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();
 }
Exemplo n.º 4
0
 public void OnNoSaveBtnClick()
 {
     GraphicsSettingData.ApplySettingConfig();
     GraphicsSettingData.CopyPersonalGraphicsConfig(ref this._modifiedPersonalSetting);
     this.ResetView();
 }
Exemplo n.º 5
0
 public void OnEcoModeBtnClick(bool willBeOn)
 {
     GraphicsSettingData.CopyPersonalGraphicsConfig(willBeOn, ref this._modifiedPersonalSetting);
     this.ResetView();
 }