From f7fe3e48abc4da1c67d3a1f742d200f17bf0c0c4 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 12 Sep 2023 20:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BC=98=E5=8C=96?= 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 | 6 ++++++ 1 file changed, 6 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 eba93927..424953db 100644 --- a/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua +++ b/lua/app/ui/dungeon_rune/cell/rune_chapter_cell.lua @@ -95,6 +95,11 @@ function RuneChapterCell:refresh(id, index, isFinal, chapterListCount) else cell:getBaseObject():setLocalScale(0.5, 0.5, 0.5) end + cell:addClickListener(function() + if self.clickFunc then + self.clickFunc() + end + end) end end if isBossChapter then @@ -108,6 +113,7 @@ end function RuneChapterCell:addClickListener(func) local uiMap = self:getUIMap() + self.clickFunc = func uiMap["chapter_cell.touch_node"]:addClickListener(func) end