From ec86c17b8dd43c22ff9b9bea2b9845dc9a749657 Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Wed, 3 Sep 2025 20:42:20 +0800 Subject: [PATCH] fix bug --- lua/app/ui/battle/battle_ui_pvp.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lua/app/ui/battle/battle_ui_pvp.lua b/lua/app/ui/battle/battle_ui_pvp.lua index de3bb173..ae51199c 100644 --- a/lua/app/ui/battle/battle_ui_pvp.lua +++ b/lua/app/ui/battle/battle_ui_pvp.lua @@ -42,9 +42,9 @@ end function BattleUIPVP:initBg() self.bg = self.uiMap["battle_ui_pvp.battle_root.bg"] - self.bg:setLocalScale(0, 0, 0) - local width = self.bg:fastGetSizeDelta() - self.bg:setAnchoredPositionX(width/4) + -- self.bg:setLocalScale(0, 0, 0) + -- local width = self.bg:fastGetSizeDelta() + -- self.bg:setAnchoredPositionX(width/4) end function BattleUIPVP:initSkill() @@ -202,6 +202,10 @@ function BattleUIPVP:refreshAvatar() self.defPlayerHeadCell:refresh(defInfo.avatar, defInfo.avatar_frame) end +function BattleUIPVP:loadBg(bgName) + self.bg:setLocalScale(1, 1, 1) +end + function BattleUIPVP:showLeftBuffTips(buffList, autoClose) local addY = self:showBuffTips(buffList, autoClose) self.battleBuffTipsBg:setAnchoredPosition(-175, -1050 + addY)