From edfc478e013e4cc8c54389c6148f93332c6682d2 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Thu, 28 Aug 2025 19:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E8=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/talent/cell/talent_cell.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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