From 2559d621e337de642d2a95e89e778ee6491309b3 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 18 Sep 2023 21:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/activity/act_pvp/act_pvp_playing_ui.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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