diff --git a/lua/app/ui/talent/cell/talent_cell.lua b/lua/app/ui/talent/cell/talent_cell.lua index 121ff831..7c19916e 100644 --- a/lua/app/ui/talent/cell/talent_cell.lua +++ b/lua/app/ui/talent/cell/talent_cell.lua @@ -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