From bca67f4fd68b4e6a895d439e850be5ba13ef9826 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Sat, 15 Jan 2022 13:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=8E=A9=E5=AE=B6=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E3=80=91=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Popup/PlayerInfoPopup.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua index 50eebcbf74..784606505b 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/PlayerInfoPopup.lua @@ -187,7 +187,8 @@ function PlayerInfoPopup:InitComponent() --所有信息Obj的PreList this.InfoBtns = Util.GetGameObject(self.transform, "tipImage/panel/InfoBtns") this.InfoBtnsGrid = Util.GetGameObject(this.InfoBtns, "Grid") - this.InfoContent = Util.GetGameObject(self.transform, "tipImage/panel/InfoGrids/Bg") + this.InfoContentGrid = Util.GetGameObject(self.transform, "tipImage/panel/InfoGrids") + this.InfoContent = Util.GetGameObject(this.InfoContentGrid, "Bg") this.infoBtnPre = Util.GetGameObject(self.transform, "btnPre")--按钮的Pre this.imprintPre = Util.GetGameObject(self.transform, "imprintPre")--神印的Pre this.emptyPre = Util.GetGameObject(self.transform, "emptyPre")--空的Pre @@ -492,7 +493,14 @@ function this.FormationAdapter(teamInfo) end) end --初始化一次 - this.ShowInfos(teamInfo) + if this.infoIndex == 0 then + this.InfoBtns:SetActive(false) + this.InfoContentGrid:SetActive(false) + else + this.InfoBtns:SetActive(true) + this.InfoContentGrid:SetActive(true) + this.ShowInfos(teamInfo) + end end --选择展示下方框框中显示的内容