diff --git a/lua/app/ui/activity/act_pvp/act_pvp_playing_ui.lua b/lua/app/ui/activity/act_pvp/act_pvp_playing_ui.lua index 030066bc..c218fb9d 100644 --- a/lua/app/ui/activity/act_pvp/act_pvp_playing_ui.lua +++ b/lua/app/ui/activity/act_pvp/act_pvp_playing_ui.lua @@ -180,6 +180,9 @@ function ActPvpPlayingUI:refreshPlayingNode() objs.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId)) objs.bg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId, true)) objs.spine:playAnim("idle", false, false, false) + objs.bg:setVisible(true) + else + objs.bg:setVisible(false) end end if self.showLevelUpSid then @@ -189,6 +192,19 @@ function ActPvpPlayingUI:refreshPlayingNode() self.showLevelUpSid = self:performWithDelayGlobal(function() skillUpNode:setVisible(false) end, 5) + else -- 只升级,没有升级技能 + for matchType, objs in ipairs(self.skillObjs) do + objs.bg:setVisible(false) + objs.spine:playAnim("idle", false, false, false) + end + skillUpNode:setVisible(true) + if self.showLevelUpSid then + self:unscheduleGlobal(self.showLevelUpSid) + self.showLevelUpSid = nil + end + self.showLevelUpSid = self:performWithDelayGlobal(function() + skillUpNode:setVisible(false) + end, 2) end end