修复青龙秘宝不关闭bug
parent
443a157006
commit
4c9db13851
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue