From c4f034e13ee754dafe9c1e5f96e79d5a1b682ff5 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Thu, 20 Apr 2023 22:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/common/cell/large_hero_cell.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/app/ui/common/cell/large_hero_cell.lua b/lua/app/ui/common/cell/large_hero_cell.lua index 7fd62265..10bfc51a 100644 --- a/lua/app/ui/common/cell/large_hero_cell.lua +++ b/lua/app/ui/common/cell/large_hero_cell.lua @@ -1,5 +1,7 @@ local LargeHeroCell = class("LargeHeroCell", BaseCell) +local OUT_SCREEN_X = 10000 + function LargeHeroCell:init() local uiMap = self.baseObject:genAllChildren() self.icon = uiMap["hero_cell.hero_bg.icon"] @@ -15,6 +17,7 @@ function LargeHeroCell:init() if not self.heroId or not self.matchType then return end + self.baseObject:setAnchoredPositionX(OUT_SCREEN_X) ModuleManager.HeroManager:showHeroDetailUI(self.heroId) end) @@ -22,6 +25,7 @@ function LargeHeroCell:init() if not self.heroId or not self.matchType then return end + self.baseObject:setAnchoredPositionX(OUT_SCREEN_X) ModuleManager.FormationManager:upHeroToStageFormation(self.heroId, self.matchType) end) end