Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
d7e50de44d
@ -6,6 +6,7 @@ function LargeHeroCell:init()
|
|||||||
local uiMap = self.baseObject:genAllChildren()
|
local uiMap = self.baseObject:genAllChildren()
|
||||||
self.icon = uiMap["large_hero_cell.hero_bg.icon"]
|
self.icon = uiMap["large_hero_cell.hero_bg.icon"]
|
||||||
self.heroBg = uiMap["large_hero_cell.hero_bg"]
|
self.heroBg = uiMap["large_hero_cell.hero_bg"]
|
||||||
|
self.heroDec = uiMap["large_hero_cell.hero_bg.dec"]
|
||||||
self.check = uiMap["large_hero_cell.hero_bg.mask"]
|
self.check = uiMap["large_hero_cell.hero_bg.mask"]
|
||||||
self.matchImg = uiMap["large_hero_cell.hero_bg.match_img"]
|
self.matchImg = uiMap["large_hero_cell.hero_bg.match_img"]
|
||||||
self.infoBtnDesc = uiMap["large_hero_cell.hero_bg.info_btn.desc"]
|
self.infoBtnDesc = uiMap["large_hero_cell.hero_bg.info_btn.desc"]
|
||||||
@ -59,7 +60,8 @@ function LargeHeroCell:_refresh(heroInfo, isGray)
|
|||||||
else
|
else
|
||||||
self.heroBg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.FRAME_QLT[heroInfo.qlt])
|
self.heroBg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.FRAME_QLT[heroInfo.qlt])
|
||||||
end
|
end
|
||||||
self.icon:setSprite(GConst.ATLAS_PATH.ICON_HERO, tostring(heroInfo.icon))
|
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.matchImg:setSprite(GConst.ATLAS_PATH.ICON_HERO, GConst.HeroConst.MATCH_ICON_NAME[heroInfo.position])
|
||||||
self.check:setVisible(false)
|
self.check:setVisible(false)
|
||||||
self.sImg:setVisible(heroInfo.qlt >= 4)
|
self.sImg:setVisible(heroInfo.qlt >= 4)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user