点击英雄卡面,不显示皮肤fix

This commit is contained in:
Fang 2023-08-31 18:10:01 +08:00
parent e243d51ff8
commit b40d1acf9d

View File

@ -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)