PGRData/Script/matrix/xui/xuimultidim/XUiGridMultiDimGradeDataItem.lua

14 lines
422 B
Lua
Raw Normal View History

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