From b40d1acf9d8e5d15611e85ebf7df03c16e93477b Mon Sep 17 00:00:00 2001 From: Fang Date: Thu, 31 Aug 2023 18:10:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=8B=B1=E9=9B=84=E5=8D=A1?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=AE=E8=82=A4?= =?UTF-8?q?fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/common/cell/large_hero_cell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/app/ui/common/cell/large_hero_cell.lua b/lua/app/ui/common/cell/large_hero_cell.lua index ccb7372b..002cd056 100644 --- a/lua/app/ui/common/cell/large_hero_cell.lua +++ b/lua/app/ui/common/cell/large_hero_cell.lua @@ -37,6 +37,7 @@ function LargeHeroCell:refresh(heroEntity, isGray, useFunc) self.matchType = heroEntity:getMatchType() local heroInfo = heroEntity:getConfig() self:_refresh(heroInfo, isGray) + self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, DataManager.SkinData:getIcon(heroEntity:getSkinId())) local str if heroEntity:canLvUp() then str = I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_4) @@ -61,7 +62,6 @@ function LargeHeroCell:_refresh(heroInfo, isGray) else self.heroBg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.FRAME_QLT[heroInfo.qlt]) end - self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, tostring(heroInfo.icon)) self.heroDec:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.HERO_DEC_QLT[heroInfo.qlt]) self.matchImg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.HeroConst.MATCH_ICON_NAME[heroInfo.position]) self.check:setVisible(false)