【本地化】修复灵兽信息界面文字显示异常

dev_chengFeng
gaoxin 2021-02-04 10:22:38 +08:00
parent 51bdf1055e
commit 0ff345346b
1 changed files with 4 additions and 2 deletions

View File

@ -41,7 +41,7 @@ function PokemonInfoPanel:InitComponent()
this.namne = Util.GetGameObject(self.transform, "nameInfo/nameText"):GetComponent("Text")
this.sortText = Util.GetGameObject(self.transform, "nameInfo/sortText")
this.upZhenImage = Util.GetGameObject(self.transform, "nameInfo/upZhenImage")
this.upZhenImage = Util.GetGameObject(self.transform, "nameInfo/upZhenImage"):GetComponent("Image")
this.leftBtn = Util.GetGameObject(self.transform, "leftBtn/GameObject")
this.rightBtn = Util.GetGameObject(self.transform, "rightBtn/GameObject")
@ -366,7 +366,9 @@ function this.UpdateHeroInfoData()
SetTextVerTial(this.namne,Vector3.New(98,1.64,0))
this.sortText:SetActive(sortIndex > 0)
this.sortText:GetComponent("Text").text = sortIndex
this.upZhenImage:SetActive(sortIndex > 0)
this.upZhenImage.gameObject:SetActive(sortIndex > 0)
this.upZhenImage:SetNativeSize()
end