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); }
public void OnSaveBtnClick() { NotificationSettingData.SavePersonalNotificationConfig(this._modifiedSettingConfig); Singleton <MainUIManager> .Instance.ShowDialog(new GeneralHintDialogContext(LocalizationGeneralLogic.GetText("Menu_SettingSaveSuccess", new object[0]), 2f), UIType.Any); }
public bool CheckNeedSave() { return(!NotificationSettingData.IsValueEqualToPersonalNotificationConfig(this._modifiedSettingConfig)); }