修复青龙秘宝不关闭bug
parent
443a157006
commit
4c9db13851
|
|
@ -71,7 +71,7 @@ function this:RemoveListener()
|
||||||
end
|
end
|
||||||
this.Closefunction = function()
|
this.Closefunction = function()
|
||||||
Timer.New(function()
|
Timer.New(function()
|
||||||
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
if not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
PopupTipPanel.ShowTip(Language[12320])
|
PopupTipPanel.ShowTip(Language[12320])
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ end
|
||||||
|
|
||||||
this.Closefunction = function()
|
this.Closefunction = function()
|
||||||
Timer.New(function()
|
Timer.New(function()
|
||||||
if not ActivityGiftManager.GetActivityOpenStatus(ActivityTypeDef.TreasureOfSomeBody) then
|
if not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.TreasureOfSomeBody) then
|
||||||
PopupTipPanel.ShowTip(Language[12320])
|
PopupTipPanel.ShowTip(Language[12320])
|
||||||
parent:ClosePanel()
|
parent:ClosePanel()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,7 @@ function this.RefreshTypeTaskInfo(taskInfoList)
|
||||||
this.SetTypeTaskInfo(taskInfo.type, taskInfo.missionId, taskInfo.state, taskInfo.progress, taskInfo.takeTimes,taskInfo.heroId)
|
this.SetTypeTaskInfo(taskInfo.type, taskInfo.missionId, taskInfo.state, taskInfo.progress, taskInfo.takeTimes,taskInfo.heroId)
|
||||||
end
|
end
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.MissionDaily.OnMissionDailyChanged)
|
Game.GlobalEvent:DispatchEvent(GameEvent.MissionDaily.OnMissionDailyChanged)
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
|
||||||
this.SetDirty()
|
this.SetDirty()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -307,6 +308,7 @@ function this.ResetTreasureTaskInfo(taskList)
|
||||||
end
|
end
|
||||||
table.insert(TypeTaskData[TaskTypeDef.TreasureOfSomeBody], taskList[i].tasks[i])
|
table.insert(TypeTaskData[TaskTypeDef.TreasureOfSomeBody], taskList[i].tasks[i])
|
||||||
end
|
end
|
||||||
|
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
|
||||||
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
|
CheckRedPointStatus(RedPointType.QinglongSerectTreasureTrail)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue