fix bug
This commit is contained in:
parent
9be39b4c7e
commit
c64788d22e
@ -36,7 +36,8 @@ function LargeHeroCell:refresh(heroEntity, isGray, useFunc)
|
|||||||
self.matchType = heroEntity:getMatchType()
|
self.matchType = heroEntity:getMatchType()
|
||||||
local heroInfo = heroEntity:getConfig()
|
local heroInfo = heroEntity:getConfig()
|
||||||
self:_refresh(heroInfo, isGray)
|
self:_refresh(heroInfo, isGray)
|
||||||
self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, DataManager.SkinData:getIcon(heroEntity:getSkinId()))
|
-- self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, DataManager.SkinData:getIcon(heroEntity:getSkinId()))
|
||||||
|
self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO_2, tostring(heroInfo.icon))
|
||||||
local str
|
local str
|
||||||
if heroEntity:canLvUp() then
|
if heroEntity:canLvUp() then
|
||||||
str = I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_4)
|
str = I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_4)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user