至尊降世兼容提交

dev_chengFeng
jiaoyangna 2022-02-23 18:12:22 +08:00
parent 6abf049eb7
commit 57198fce39
1 changed files with 20 additions and 5 deletions

View File

@ -121,7 +121,7 @@ function SupremeHeroPopupNew:InitComponent()
this.lingxiaobaojian = Util.GetGameObject(this.btnLayer.transform, "threeTab")
this.lingxiaobaojianRed = Util.GetGameObject(this.lingxiaobaojian, "red")
this.fourTab = Util.GetGameObject(this.btnLayer.transform, "fourTab")
this.fourTabRed = Util.GetGameObject(this.lingxiaobaojian, "red")
this.fourTabRed = Util.GetGameObject(this.fourTab, "red")
this.select = Util.GetGameObject(this.btnLayer.transform, "select")
--1玉帝 2御剑
this.panelist = {}
@ -292,10 +292,10 @@ function SupremeHeroPopupNew:OnShow()
end
self:SetSelect()
local actData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SupremeHero)
this.oneTab.gameObject:SetActive(true)
this.tianjingzunzhe.gameObject:SetActive(true)
this.lingxiaobaojian.gameObject:SetActive(true)
this.fourTab.gameObject:SetActive(true)
this.oneTab.gameObject:SetActive(this.RefreshActive(1))
this.tianjingzunzhe.gameObject:SetActive(this.RefreshActive(2))
this.lingxiaobaojian.gameObject:SetActive(this.RefreshActive(3))
this.fourTab.gameObject:SetActive(this.RefreshActive(4))
--curPage = 2
this.InitShowPanel()
this.tianjingzunzheRed.gameObject:SetActive(this.RefreshRedPoint(2))
@ -434,6 +434,10 @@ function this.SetMissionData()
DynamicActivityManager.Index = 6
JumpManager.GoJump(1300)
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceClear)
elseif curPage == 4 and j == 3 then
DynamicActivityManager.Index = 7
JumpManager.GoJump(1300)
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceClear)
else
NetManager.GetActivityRewardRequest(idList[curPage][j].id, actData.activityId,function(drop)
UIManager.OpenPanel(UIName.RewardItemPopup,drop,1,function()
@ -496,6 +500,17 @@ function this.RefreshRedPoint(indexType)
return isShow
end
function this.RefreshActive(indexType)
local isShow = false
local actData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SupremeHero)
for k,v in ipairs(actData.mission) do
if activityConfig[v.missionId].Sort == indexType then
isShow = true
end
end
return isShow
end
--界面关闭时调用(用于子类重写)
function SupremeHeroPopupNew:OnClose()
if this.timer then