【玩家信息】报错修改

dev_chengFeng
ZhangBiao 2022-01-15 13:26:22 +08:00
parent 28d4b2a8be
commit bca67f4fd6
1 changed files with 10 additions and 2 deletions

View File

@ -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
--选择展示下方框框中显示的内容