天赋
This commit is contained in:
parent
be6283fd1c
commit
edfc478e01
@ -20,14 +20,20 @@ end
|
||||
function TalentCell:refresh(idx, cfg, showAni)
|
||||
self.idx = idx
|
||||
local cfg = DataManager.TalentData:getCfgList()[idx]
|
||||
self.bg1:setSprite(GConst.ATLAS_PATH.ICON_TALENT, "talent_b_" .. cfg.qlt)
|
||||
self.bg:setSprite(GConst.ATLAS_PATH.ICON_TALENT, "talent_" .. idx)
|
||||
self.bg:setSprite(GConst.ATLAS_PATH.ICON_TALENT, "talent_b_" .. cfg.qlt)
|
||||
self.bg1:setSprite(GConst.ATLAS_PATH.ICON_TALENT, "talent_" .. idx)
|
||||
self.descTx1:setText(I18N:getText("talent", idx, "name"))
|
||||
local lv = DataManager.TalentData:getLevels(idx)
|
||||
self.descTx2:setText("Lv." .. lv)
|
||||
if showAni then
|
||||
self.bg:setActive(true)
|
||||
self.animator.enabled = true
|
||||
self.animator:SetTrigger("t_open")
|
||||
self.baseObject:performWithDelayGlobal(function()
|
||||
self.bg:setActive(false)
|
||||
end, 0.5)
|
||||
else
|
||||
self.bg:setActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user