android
This commit is contained in:
@@ -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为调用refresh,show和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)
|
||||
|
||||
Reference in New Issue
Block a user