This commit is contained in:
2020-08-03 23:05:29 +08:00
parent f3ecc018ff
commit 9e8c6f080f
64 changed files with 325 additions and 261 deletions

View File

@@ -10,7 +10,7 @@ function TRPSelectServer:init(csObj)
self:setEventDelegate()
uiobjs.grid = getCC(self.transform, "Grid", "UIGrid")
uiobjs.gridPrefab = getChild(uiobjs.grid, "00000").gameObject
uiobjs.gridPrefab = getChild(uiobjs.grid.transform, "00000").gameObject
end
-- 设置数据
@@ -21,7 +21,7 @@ end
-- 显示在c#中。show为调用refreshshow和refresh的区别在于当页面已经显示了的情况当页面再次出现在最上层时只会调用refresh
function TRPSelectServer:show()
CLUIUtl.resetList4Lua(uiobjs.grid, uiobjs.gridPrefab, self.mdata.servers, self:wrapFunc(self.init))
CLUIUtl.resetList4Lua(uiobjs.grid, uiobjs.gridPrefab, self.mdata.servers, self:wrapFunc(self.initCell))
end
function TRPSelectServer:initCell(cell, data)