点击优化
This commit is contained in:
parent
d56fd65a70
commit
f7fe3e48ab
@ -95,6 +95,11 @@ function RuneChapterCell:refresh(id, index, isFinal, chapterListCount)
|
|||||||
else
|
else
|
||||||
cell:getBaseObject():setLocalScale(0.5, 0.5, 0.5)
|
cell:getBaseObject():setLocalScale(0.5, 0.5, 0.5)
|
||||||
end
|
end
|
||||||
|
cell:addClickListener(function()
|
||||||
|
if self.clickFunc then
|
||||||
|
self.clickFunc()
|
||||||
|
end
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if isBossChapter then
|
if isBossChapter then
|
||||||
@ -108,6 +113,7 @@ end
|
|||||||
|
|
||||||
function RuneChapterCell:addClickListener(func)
|
function RuneChapterCell:addClickListener(func)
|
||||||
local uiMap = self:getUIMap()
|
local uiMap = self:getUIMap()
|
||||||
|
self.clickFunc = func
|
||||||
uiMap["chapter_cell.touch_node"]:addClickListener(func)
|
uiMap["chapter_cell.touch_node"]:addClickListener(func)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user