From eec5738408925fb56f99ec59d3cd832a1259559e Mon Sep 17 00:00:00 2001 From: puxuan <413323644@qq.com> Date: Sat, 8 Nov 2025 14:37:21 +0800 Subject: [PATCH] fix bug --- lua/app/ui/common/cell/hero_cell.lua | 7 +++++-- lua/app/ui/hero/hero_comp.lua | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/app/ui/common/cell/hero_cell.lua b/lua/app/ui/common/cell/hero_cell.lua index 6455d86b..53836e33 100644 --- a/lua/app/ui/common/cell/hero_cell.lua +++ b/lua/app/ui/common/cell/hero_cell.lua @@ -47,9 +47,12 @@ function HeroCell:refresh(heroEntity, isGray) local canLvUp = heroEntity:canLvUp() local canStarUp = heroEntity:canStarUp() local inTeam = DataManager.HeroData:isInStageFormation(heroEntity:getCfgId()) - if (canLvUp and inTeam) or canStarUp then + if canLvUp and inTeam then self.lvUpArrow:setActive(true) - self.lvUpArrow:playAnim("animation", true, false) + self.lvUpArrow:playAnim("lv", true, false) + elseif canStarUp then + self.lvUpArrow:setActive(true) + self.lvUpArrow:playAnim("star", true, false) else self.lvUpArrow:setActive(false) end diff --git a/lua/app/ui/hero/hero_comp.lua b/lua/app/ui/hero/hero_comp.lua index 3b337ea6..bf1a8893 100644 --- a/lua/app/ui/hero/hero_comp.lua +++ b/lua/app/ui/hero/hero_comp.lua @@ -312,7 +312,7 @@ function HeroComp:onClickHero(cell, heroId) local targetPos = cell:getBaseObject():getTransform().position local sPoint = UIManager:getUICameraComponent():WorldToScreenPoint(targetPos) targetPos = CS.BF.Utils.RectTransformScreenPointToLocalPointInRectangle(self.content:getTransform(), sPoint.x, sPoint.y, UIManager:getUICameraComponent()) - self.largeHeroCell:getBaseObject():setAnchoredPosition(targetPos.x, targetPos.y) + self.largeHeroCell:getBaseObject():setAnchoredPosition(targetPos.x, targetPos.y + 113) self.largeHeroCell:getBaseObject():getTransform():SetAsLastSibling() self.largeHeroCell:refresh(entity, not entity:isActived(), self.onClickUseFunc, self.battleType) self.largeHeroCell:showCheck(self.curFormation[entity:getMatchType()] == heroId)