Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | RedpointCenter.Instance.redpointValueChangeEvent -= RedpointValueChangeEvent;
|
| | | TaskModel.Event_FairyAuTask -= OnFairyTaskRefresh;
|
| | | FuncOpen.Instance.NewFuncOpenEvent -= OnNewFuncOpen;
|
| | | m_newDailyQuestOpenList.Clear();
|
| | | m_HasShowDailyQuestList.Clear();
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | DailyQuestActionTimer.Instance.Begin();
|
| | | m_newDailyQuestOpenList.Clear();
|
| | | m_HasShowDailyQuestList.Clear();
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | bool bHasAdd = false;
|
| | | foreach (var quest in quests)
|
| | | {
|
| | | if(quest.UnLockFuncID == id)
|
| | | if(quest.UnLockFuncID == id && !m_newDailyQuestOpenList.Contains(quest.ID))
|
| | | {
|
| | | m_newDailyQuestOpenList.Add(quest.ID);
|
| | | bHasAdd = true;
|
| | |
| | | MyFightPoint,
|
| | | MyReikiRoot,
|
| | | MyDefense,
|
| | | JobLabel,
|
| | | }
|
| | |
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyFightPoint, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyReikiRoot, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyDefense, this);
|
| | | RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JobLabel, this);
|
| | | }
|
| | |
|
| | | public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
|
| | |
| | | return label;
|
| | | }
|
| | | }
|
| | | case RichTextEventEnum.JobLabel:
|
| | | {
|
| | | var json = dic["joblabel"];
|
| | | var labelArray = LitJson.JsonMapper.ToObject<string[]>(json);
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | | var index = job - 1;
|
| | | if (labelArray != null && index < labelArray.Length)
|
| | | {
|
| | | return labelArray[index];
|
| | | }
|
| | | }
|
| | | break;
|
| | | }
|
| | | return string.Empty;
|
| | | }
|
| | |
| | | eventType = RichTextEventEnum.MyDefense;
|
| | | }
|
| | | break;
|
| | | case "joblabel":
|
| | | {
|
| | | displayDic.Add(split_value, array[1].ToLower());
|
| | | eventType = RichTextEventEnum.JobLabel;
|
| | | }
|
| | | break;
|
| | | default:
|
| | | {
|
| | | displayDic.Add(split_value, array[1]);
|