From 57198fce3964091018a1f5dbc8c3ab3741c92fc8 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Wed, 23 Feb 2022 18:12:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=B3=E5=B0=8A=E9=99=8D=E4=B8=96=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Popup/SupremeHeroPopupNew.lua | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/SupremeHeroPopupNew.lua b/Assets/ManagedResources/~Lua/Modules/Popup/SupremeHeroPopupNew.lua index f360c42551..3f7d6f76a0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/SupremeHeroPopupNew.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/SupremeHeroPopupNew.lua @@ -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