Exemple #1
0
 private void RecoverOriginState()
 {
     NotificationSettingData.ApplyNotificationSettingConfig();
     NotificationSettingData.CopyPersonalNotificationConfig(ref this._modifiedSettingConfig);
     this.SetChoiceBtn(this.staminaSettingBtn, this._modifiedSettingConfig.StaminaFullNotificaltion);
     this.SetChoiceBtn(this.skillPointSettingBtn, this._modifiedSettingConfig.SkillPointFullNotification);
     this.SetChoiceBtn(this.expeditionEndSettingBtn, this._modifiedSettingConfig.VentureDoneNotification);
     this.SetChoiceBtn(this.cabinLevelUpSettingBtn, this._modifiedSettingConfig.CabinLevelUpNotification);
     this.SetChoiceBtn(this.activitySettingBtn, this._modifiedSettingConfig.ActivityNotification);
 }
Exemple #2
0
 public void OnSaveBtnClick()
 {
     NotificationSettingData.SavePersonalNotificationConfig(this._modifiedSettingConfig);
     Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(LocalizationGeneralLogic.GetText("Menu_SettingSaveSuccess", new object[0]), 2f), UIType.Any);
 }
Exemple #3
0
 public bool CheckNeedSave()
 {
     return(!NotificationSettingData.IsValueEqualToPersonalNotificationConfig(this._modifiedSettingConfig));
 }