【破阵诛仙】点金达人任务,跳转点金,不计数,修复乾坤宝盒快速切换报错的问题
parent
f58f067fe5
commit
443a157006
|
@ -75,9 +75,21 @@ end
|
|||
|
||||
--添加事件监听(用于子类重写)
|
||||
function DynamicActivityPanel:AddListener()
|
||||
for i = 1, #this.PageList do
|
||||
if this.PageList[i] and this.PageList[i].AddListener then
|
||||
this.PageList[i]:AddListener()
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
--移除事件监听(用于子类重写)
|
||||
function DynamicActivityPanel:RemoveListener()
|
||||
for i = 1, #this.PageList do
|
||||
if this.PageList[i] and this.PageList[i].RemoveListener then
|
||||
this.PageList[i]:RemoveListener()
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
|
|
@ -32,10 +32,12 @@ end
|
|||
|
||||
--添加事件监听(用于子类重写)
|
||||
function PoZhenZhuXianPage:AddListener()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.DynamicTask.OnMissionChange, this.Refresh)
|
||||
end
|
||||
|
||||
--移除事件监听(用于子类重写)
|
||||
function PoZhenZhuXianPage:RemoveListener()
|
||||
Game.GlobalEvent:RemoveEvent(GameEvent.DynamicTask.OnMissionChange, this.Refresh)
|
||||
end
|
||||
local sortingOrder = 0
|
||||
--界面打开时调用(用于子类重写)
|
||||
|
|
|
@ -74,6 +74,8 @@ function QianKunBox:BindEvent()
|
|||
ActivityDetail.new(self.detail,2,self.effect)
|
||||
end)
|
||||
Util.AddClick(self.btnStore,function()
|
||||
self:storeShow()--商店
|
||||
|
||||
self.effect:SetActive(false)
|
||||
self.shop:SetActive(true)
|
||||
self.btnBack:SetActive(false)
|
||||
|
@ -103,7 +105,6 @@ function QianKunBox:OnShow(sortingOrder)
|
|||
self:refreshBtnShow()--刷新按钮显示
|
||||
|
||||
self:contentShow()--五个魂印头像
|
||||
self:storeShow()--商店
|
||||
self:timeCountDown()--时间
|
||||
|
||||
end
|
||||
|
|
|
@ -136,6 +136,8 @@ function this.SetTypeTaskState(type, Id, state, progress, takeTimes,heroId)
|
|||
end
|
||||
this.SetDirty()
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.MissionDaily.OnMissionDailyChanged)
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.DynamicTask.OnMissionChange)
|
||||
|
||||
end
|
||||
|
||||
function this.SetMissionIdState(type, Id, state)
|
||||
|
|
Loading…
Reference in New Issue