【玩家信息】报错修改
parent
28d4b2a8be
commit
bca67f4fd6
|
@ -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
|
||||
|
||||
--选择展示下方框框中显示的内容
|
||||
|
|
Loading…
Reference in New Issue