PGRData/Script/matrix/xui/xuifuben/extralline/XUiFubenExtralLineChapterDynamicTable.lua

22 lines
902 B
Lua
Raw Normal View History

2024-09-01 22:49:41 +02:00
local XUiFubenChapterDynamicTable = require("XUi/XUiFuben/UiDynamicList/XUiFubenChapterDynamicTable")
local XUiFubenExtralLineChapterDynamicTable = XClass(XUiFubenChapterDynamicTable, "XUiFubenExtralLineChapterDynamicTable")
function XUiFubenExtralLineChapterDynamicTable:Ctor(rootUi)
self.Manager = nil
self.RootUi = rootUi
end
function XUiFubenExtralLineChapterDynamicTable:SetCurrentManager(manager)
self.Manager = manager
end
function XUiFubenExtralLineChapterDynamicTable:OnDynamicTableEvent(event, index, grid)
if index < 0 then index = self.DynamicTable:GetTweenIndex() end
if grid then self.GridDic[index] = grid end
if event == DYNAMIC_DELEGATE_EVENT.DYNAMIC_GRID_ATINDEX then
grid:SetManager(self.Manager)
end
XUiFubenExtralLineChapterDynamicTable.Super.OnDynamicTableEvent(self, event, index, grid)
end
return XUiFubenExtralLineChapterDynamicTable