点击优化
This commit is contained in:
parent
d56fd65a70
commit
f7fe3e48ab
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user