22 lines
No EOL
509 B
Lua
22 lines
No EOL
509 B
Lua
local XUiDormFieldGuideDesListItem = XClass(nil, "XUiDormFieldGuideDesListItem")
|
|
|
|
function XUiDormFieldGuideDesListItem:Ctor(ui)
|
|
self.GameObject = ui.gameObject
|
|
self.Transform = ui.transform
|
|
XTool.InitUiObject(self)
|
|
end
|
|
|
|
function XUiDormFieldGuideDesListItem:Init(parent)
|
|
self.Parent = parent
|
|
end
|
|
|
|
-- 更新数据
|
|
function XUiDormFieldGuideDesListItem:OnRefresh(itemData)
|
|
if not itemData then
|
|
return
|
|
end
|
|
|
|
self.TxtDes.text = itemData
|
|
end
|
|
|
|
return XUiDormFieldGuideDesListItem |