PGRData/Script/matrix/xui/xuispecialtrainyuanxiao/XUiGridYuanXiaoDataItem.lua

15 lines
435 B
Lua
Raw Normal View History

local XUiGridYuanXiaoDataItem = XClass(nil, "XUiGridYuanXiaoDataItem")
function XUiGridYuanXiaoDataItem:Ctor(ui, name)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
self.TxtTitle.text = name
end
function XUiGridYuanXiaoDataItem:Refresh(mvp, value)
self.ImgMvp.gameObject:SetActiveEx(mvp and true or false)
self.TxtValue.text = value
end
return XUiGridYuanXiaoDataItem