修复青龙秘宝不关闭bug

dev_chengFeng
JieLing 2020-09-23 17:41:48 +08:00
parent 443a157006
commit 4c9db13851
3 changed files with 4 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function this:RemoveListener()
end
this.Closefunction = function()
Timer.New(function()
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
if not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody) then
PopupTipPanel.ShowTip(Language[12320])
parent:ClosePanel()
return

View File

@ -87,7 +87,7 @@ end
this.Closefunction = function()
Timer.New(function()
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
if not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody) then
PopupTipPanel.ShowTip(Language[12320])
parent:ClosePanel()
return

View File

@ -202,6 +202,7 @@ function this.RefreshTypeTaskInfo(taskInfoList)
this.SetTypeTaskInfo(taskInfo.type, taskInfo.missionId, taskInfo.state, taskInfo.progress, taskInfo.takeTimes,taskInfo.heroId)
end
Game.GlobalEvent:DispatchEvent(GameEvent.MissionDaily.OnMissionDailyChanged)
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
this.SetDirty()
end
@ -307,6 +308,7 @@ function this.ResetTreasureTaskInfo(taskList)
end
table.insert(TypeTaskData[TaskTypeDef.TreasureOfSomeBody], taskList[i].tasks[i])
end
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
end