diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index b113436a..6e2e4840 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -546,6 +546,9 @@ function BattleController:enterNextWave() if not self.needWaitingBoardOver then self:enterRoundBegin() end + if not self.isBossWave then + self.battleUI:hideBuffTips() + end end function BattleController:enterRoundBegin() diff --git a/lua/app/ui/battle/battle_daily_challenge_buff_ui.lua b/lua/app/ui/battle/battle_daily_challenge_buff_ui.lua index 9c814fa8..a48af0ed 100644 --- a/lua/app/ui/battle/battle_daily_challenge_buff_ui.lua +++ b/lua/app/ui/battle/battle_daily_challenge_buff_ui.lua @@ -41,7 +41,8 @@ function BattleDailyChallengeBuffUI:_display() end local txNode = uiMap["battle_daily_challenge_buff_ui.raw_img"]:getComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP) txNode.alpha = 0 - uiMap["battle_daily_challenge_buff_ui.ui_spine_obj"]:playAnim("idle", false, true) + local spineObj = uiMap["battle_daily_challenge_buff_ui.ui_spine_obj"] + spineObj:setVisible(false) if self.txSeq then self.txSeq:Kill() @@ -49,6 +50,11 @@ function BattleDailyChallengeBuffUI:_display() end self.txSeq = self.root:createBindTweenSequence() self.txSeq:AppendInterval(0.2) + self.txSeq:AppendCallback(function() + spineObj:setVisible(true) + spineObj:playAnim("idle", false, true) + end) + self.txSeq:AppendInterval(0.2) self.txSeq:Append(txNode:DOFade(1, 0.2)) end diff --git a/lua/app/ui/battle/battle_ui.lua b/lua/app/ui/battle/battle_ui.lua index 449ada6d..727fd9ab 100644 --- a/lua/app/ui/battle/battle_ui.lua +++ b/lua/app/ui/battle/battle_ui.lua @@ -377,6 +377,13 @@ function BattleUI:showBuffTips(buffList, autoClose) end end +function BattleUI:hideBuffTips() + if not self.battleBuffTipsRoot then + return + end + self.battleBuffTipsRoot:setLocalScale(0, 0, 0) +end + function BattleUI:getBattleBuffTipsObj(index) if self.battleBuffTipsBuffList[index] then return self.battleBuffTipsBuffList[index]