From 3c67abbd6dad4f522cfefff7c5ba7554f602bffa Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Mon, 2 Aug 2021 11:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9B=E5=85=83=E9=98=B5=E9=97=AA=E7=8E=B0?= =?UTF-8?q?=E4=BA=BA=E7=89=A9=E7=AB=8B=E7=BB=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/SecretBox/SecretBoxBuyOnePanel.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/SecretBox/SecretBoxBuyOnePanel.lua b/Assets/ManagedResources/~Lua/Modules/SecretBox/SecretBoxBuyOnePanel.lua index 795796e8fb..0ce1184a21 100644 --- a/Assets/ManagedResources/~Lua/Modules/SecretBox/SecretBoxBuyOnePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/SecretBox/SecretBoxBuyOnePanel.lua @@ -17,6 +17,8 @@ function SecretBoxBuyOnePanel:InitComponent() orginLayer = 10 self.bg = Util.GetGameObject(self.gameObject, "effect") + -- self.dibiao = Util.GetGameObject(self.bg, "dibiao") + -- self.dibiao.gameObject:SetActive(false) this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard }) screenAdapte(self.bg) this.btnBack=Util.GetGameObject(self.gameObject, "bottom/backButton") @@ -52,7 +54,6 @@ function SecretBoxBuyOnePanel:BindEvent() Util.AddClick(this.openOneAgainButton, function () Log(tostring(this.recruitType)) if this.recruitType then - self:ClosePanel() if this.recruitType==drawtType.FindFairySingle then --如果道具不足 要做判断 @@ -61,6 +62,7 @@ function SecretBoxBuyOnePanel:BindEvent() if BagManager.GetItemCountById(itemId) < itemNum then if PrivilegeManager.GetPrivilegeRemainValue(32)<=0 then --如果免费次数不足 PopupTipPanel.ShowTip(Language[10526]) + self:ClosePanel() return end end @@ -103,6 +105,8 @@ function SecretBoxBuyOnePanel:OnSortingOrderChange() end --界面打开时调用(用于子类重写) function SecretBoxBuyOnePanel:OnOpen(...) + self.bg.gameObject:SetActive(false) + self.bg.gameObject:SetActive(true) SoundManager.PlaySound(SoundConfig.UI_Siyuanzhen) this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard }) local args = { ... }