PGRData/Script/matrix/xui/xuipurchase/XUiPurchaseYKListItem.lua

23 lines
527 B
Lua
Raw Normal View History

local XUiPurchaseYKListItem = XClass(nil, "XUiPurchaseYKListItem")
function XUiPurchaseYKListItem:Ctor(ui,uiRoot)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.UiRoot = uiRoot
XTool.InitUiObject(self)
end
-- 更新数据
function XUiPurchaseYKListItem:OnRefresh(itemData)
if not itemData then
return
end
self.ItemData = itemData
end
function XUiPurchaseYKListItem:Init(uiRoot,parent)
self.UiRoot = uiRoot
self.Parent = parent
end
return XUiPurchaseYKListItem