From 0ff345346bef0f502b276132689b12faf5e7f328 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 4 Feb 2021 10:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9C=AC=E5=9C=B0=E5=8C=96=E3=80=91?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=81=B5=E5=85=BD=E4=BF=A1=E6=81=AF=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E6=96=87=E5=AD=97=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Pokemon/PokemonInfoPanel.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua index c0f1c76845..274f095f28 100644 --- a/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Pokemon/PokemonInfoPanel.lua @@ -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