From bae3ec50cd55b59e2b52f408f0a32c780e0fef47 Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Wed, 27 Jan 2021 17:19:27 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E6=8A=BD?= =?UTF-8?q?=E5=B0=86=E5=8A=A8=E7=94=BB=E5=8F=AF=E4=BB=A5=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=B7=B3=E8=BF=87=20=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Recruit/SingleRecruitPanel.lua | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua b/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua index 79ad54898a..5221c99bbb 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recruit/SingleRecruitPanel.lua @@ -51,6 +51,7 @@ function SingleRecruitPanel:InitComponent() this.UI_Effect_choukaSR = Util.GetGameObject(self.transform, "bg/UI_Effect_chouka_SR") this.UI_Effect_choukaR = Util.GetGameObject(self.transform, "bg/UI_Effect_chouka_R") this.jumpBtn = Util.GetGameObject(this.jumpPanel.transform, "btnContinue/jumpBtn") + this.jumpBtnGo = Util.GetGameObject(this.jumpPanel.transform, "btnContinue") self.posImage=Util.GetGameObject(self.transform,"Pos/PosImage"):GetComponent("Image") self.posText=Util.GetGameObject(self.transform,"Pos/PosText"):GetComponent("Text") @@ -122,6 +123,10 @@ function SingleRecruitPanel:BindEvent() if state==1 then --单抽 this.UI_Effect_open:SetActive(false) self:UpdataPanelData(heroData) + this.goBtn:SetActive(false) + this.againBtn:SetActive(true) + this.sureBtn:SetActive(true) + this.info:SetActive(false) else if lotterySetting[type].LotteryType == 11 then isFirst=false @@ -129,6 +134,7 @@ function SingleRecruitPanel:BindEvent() self:ClosePanel() UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type,recruitType) end + this.jumpBtnGo:SetActive(false) end) --确定按钮 Util.AddClick(self.goBtn,function() @@ -188,14 +194,13 @@ function SingleRecruitPanel:OnShow() isFirst=true maxTimesId=lotterySetting[type].MaxTimes --特权上限ID index=0 + this.jumpBtnGo:SetActive(true) if state==1 then --单抽 - this.jumpBtn:SetActive(true) if lotterySetting[type].LotteryType == 11 then isFirst=false end self:TenOpenPanel() elseif state==2 then - this.jumpBtn:SetActive(true) isFirst=true if lotterySetting[type].LotteryType == 11 then isFirst=false @@ -356,21 +361,19 @@ function SingleRecruitPanel:UpdataPanelData(_heroData) --10连 if state == 2 then - -- self:TenOpenPanel(heroData) - this.jumpBtn:SetActive(true) Util.GetGameObject(self.transform, "rolePanel/rolePanel2"):SetActive(true) this.sureBtn:SetActive(false) this.againBtn:SetActive(false) this.goBtn:SetActive(true) else this.goBtn:SetActive(heroStaticData.Star == 5 or heroStaticData.Star == 4) - this.jumpBtn:SetActive(false) this.sureBtn:SetActive(heroStaticData.Star ~= 5 and heroStaticData.Star ~= 4) this.againBtn:SetActive(heroStaticData.Star ~= 5 and heroStaticData.Star ~= 4) Util.GetGameObject(self.transform, "rolePanel/rolePanel2"):SetActive(true) if heroStaticData.Quality == 5 and heroStaticData.Natural >= 13 then HeroManager.DetectionOpenFiveStarActivity(heroStaticData.Star) end + this.jumpBtnGo:SetActive(false) end end