| | |
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | model.currentActiveValueUpdateEvent += OnUpdateCurrentActive;
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | |
| | | model.currentDailyQuest = 0;
|
| | | m_HangTimeBehaviour.Dispose();
|
| | | m_QuestScroll.Dispose();
|
| | |
|
| | | model.currentActiveValueUpdateEvent -= OnUpdateCurrentActive;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | |
| | | private void ShowQuestGroups(List<int> _quests)
|
| | | {
|
| | | m_HangTimeBehaviour.Display();
|
| | | m_DailyQuestActiveSlider.UpdateActiveValue( model.currentActiveValue, model.dailyQuestTotalActiveValue);
|
| | | m_DailyQuestActiveSlider.Initialize();
|
| | | m_DailyQuestActiveSlider.UpdateCurrentActiveValue(model.currentActiveValue, model.dailyQuestTotalActiveValue);
|
| | | var groupDatas = new List<DailyQuestGroup.GroupData>();
|
| | | var max = _quests.Count;
|
| | | for (int i = 0; i < max; i++, i++)
|
| | |
| | | private void ShowCalendar()
|
| | | {
|
| | | WindowCenter.Instance.Open<DailyQuestCalendarWin>();
|
| | | }
|
| | |
|
| | | private void OnUpdateCurrentActive()
|
| | | {
|
| | | m_DailyQuestActiveSlider.UpdateCurrentActiveValue(model.currentActiveValue, model.dailyQuestTotalActiveValue);
|
| | | }
|
| | |
|
| | | public void GotoDailyQuest(int _id)
|
| | |
| | | GotoTreasureCollectSoul();
|
| | | break;
|
| | | case DailyQuestType.DungeonAssist:
|
| | | //WindowCenter.Instance.CloseImmediately<DailyQuestWin>();
|
| | | //ChatCtrl.Inst.presentChatType = ChatInfoType.World;
|
| | | //ChatCtrl.Inst.openFromDaily = true;
|
| | | //WindowCenter.Instance.Open<ChatWin>();
|
| | | WindowCenter.Instance.Open<DungeonAssistWin>();
|
| | | break;
|
| | | case DailyQuestType.FairyGrabBoss:
|
| | |
| | | case DailyQuestType.AllianceBoss2:
|
| | | GotoAllianceBoss(_id, 1);
|
| | | break;
|
| | | //case DailyQuestType.JadeDynastyBoss:
|
| | | // WindowCenter.Instance.Close<DailyQuestWin>();
|
| | | // WindowCenter.Instance.Open<LootPreciousFrameWin>(false, 3);
|
| | | // break;
|
| | | //case DailyQuestType.JadeDynastyTower:
|
| | | // WindowCenter.Instance.Close<DailyQuestWin>();
|
| | | // WindowCenter.Instance.Open<TowerWin>(false, 1);
|
| | | // break;
|
| | | default:
|
| | | CSharpCallLua.GotoLuaDailyQuest(_id);
|
| | | break;
|