From 0867e8481507daffea567d0da1b124e43641224a Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 6 Jun 2023 14:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=B3=A2=E6=AC=A1=E6=97=B6?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=85=B3=E9=97=ADbuff=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/controller/battle_controller.lua | 3 +++ lua/app/ui/battle/battle_daily_challenge_buff_ui.lua | 8 +++++++- lua/app/ui/battle/battle_ui.lua | 7 +++++++ 3 files changed, 17 insertions(+), 1 deletion(-) 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]