优化显示

This commit is contained in:
xiekaidong 2023-09-18 21:05:42 +08:00
parent 0211dfe5d0
commit 2559d621e3

View File

@ -180,6 +180,9 @@ function ActPvpPlayingUI:refreshPlayingNode()
objs.icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueIcon(skillId)) 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.bg:setSprite(GConst.ATLAS_PATH.ICON_SKILL_ROGUE, ModuleManager.HeroManager:getSkillRogueBg(skillId, true))
objs.spine:playAnim("idle", false, false, false) objs.spine:playAnim("idle", false, false, false)
objs.bg:setVisible(true)
else
objs.bg:setVisible(false)
end end
end end
if self.showLevelUpSid then if self.showLevelUpSid then
@ -189,6 +192,19 @@ function ActPvpPlayingUI:refreshPlayingNode()
self.showLevelUpSid = self:performWithDelayGlobal(function() self.showLevelUpSid = self:performWithDelayGlobal(function()
skillUpNode:setVisible(false) skillUpNode:setVisible(false)
end, 5) 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
end end