From abe9d679279c342e536d04775268cc8d5dbd6a5a Mon Sep 17 00:00:00 2001 From: zhangqiang <657634622@qq.com> Date: Thu, 1 Apr 2021 19:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=81=E7=BB=9D=E9=98=B5=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E3=80=91=E9=A2=86=E5=A5=96=E9=98=B6=E6=AE=B5=EF=BC=8C=E6=9C=AA?= =?UTF-8?q?=E8=A2=AB=E9=A2=86=E5=8F=96=E7=9A=84=E7=AE=B1=E5=AD=90=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E6=9F=A5=E7=9C=8B=E5=88=B0=E5=A5=96=E5=8A=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua | 5 ++++- .../~Lua/Modules/Recruit/TenRecruitPanel.lua | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua index d4508b02ec..1121561fc0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRewardPopup.lua @@ -148,6 +148,9 @@ function this.SetScrollPre(root,data,index) end) end) if data.username=="" then + if itemViewList[root] then + itemViewList[root].gameObject:SetActive(false) + end return end @@ -155,7 +158,7 @@ function this.SetScrollPre(root,data,index) itemViewList[root]=SubUIManager.Open(SubUIConfig.ItemView,itemRoot.transform) end itemViewList[root]:OnOpen(false,{data.itemId,data.itemCount},1.1,false,false,false) - + itemViewList[root].gameObject:SetActive(true) if data.username then name.text=data.username end diff --git a/Assets/ManagedResources/~Lua/Modules/Recruit/TenRecruitPanel.lua b/Assets/ManagedResources/~Lua/Modules/Recruit/TenRecruitPanel.lua index d808e41756..16ac1d8147 100644 --- a/Assets/ManagedResources/~Lua/Modules/Recruit/TenRecruitPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Recruit/TenRecruitPanel.lua @@ -113,7 +113,7 @@ function TenRecruitPanel:OnOpen(...) this.againIcon.sprite=Util.LoadSprite(artResourcesConfig[itemConfig[d[1]].ResourceID].Name) this.againNum.text="×"..d[2] maxTimesId=lotterySetting[type].MaxTimes --特权上限ID - this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main }) + this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit }) end --界面关闭时调用(用于子类重写)