| | |
| | | bool TryOpenHazyReion(out int error)
|
| | | {
|
| | | error = 0;
|
| | | if (dailyQuestModel.usableActivePoint < model.openActviePoint)
|
| | | var totalTimes = dailyQuestModel.GetDailyQuestTotalTimes((int)DailyQuestType.HazyRegion);
|
| | | var completedTimes = dailyQuestModel.GetDailyQuestCompletedTimes((int)DailyQuestType.HazyRegion);
|
| | | if (totalTimes <= completedTimes)
|
| | | {
|
| | | error = 2;
|
| | | return false;
|
| | |
| | | }
|
| | | break;
|
| | | case 2:
|
| | | ConfirmCancel.ShowRealmPopConfirm(Language.Get("Mail101"),
|
| | | Language.Get("OpenHazyRegionError_2"),
|
| | | Language.Get("GotoGetActivePoint"), () =>
|
| | | {
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.DailyQuestFunc1);
|
| | | });
|
| | | WindowCenter.Instance.Open<HazyRegionBuyTimesWin>();
|
| | | break;
|
| | | case 3:
|
| | | SysNotifyMgr.Instance.ShowTip("OpenHazyRegionError_3");
|