点击英雄卡面,不显示皮肤fix
This commit is contained in:
parent
e243d51ff8
commit
b40d1acf9d
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user