From c8c30b9aecf97f178dba6a6f7ea0f7993b51ca55 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 12 Sep 2023 20:12:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua b/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua index 424953db..2ac24c72 100644 --- a/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua +++ b/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua @@ -102,6 +102,7 @@ function RuneChapterCell:refresh(id, index, isFinal, chapterListCount) end) end end + if isBossChapter then self.rewardCells[1]:getBaseObject():setAnchoredPositionX(-43) self.rewardCells[2]:getBaseObject():setAnchoredPositionX(43) @@ -109,6 +110,12 @@ function RuneChapterCell:refresh(id, index, isFinal, chapterListCount) self.rewardCells[1]:getBaseObject():setAnchoredPositionX(-35) self.rewardCells[2]:getBaseObject():setAnchoredPositionX(35) end + + sweep:addClickListener(function() + if self.clickFunc then + self.clickFunc() + end + end) end function RuneChapterCell:addClickListener(func)