PGRData/Resources/Scripts/XUi/XUiMultiplayerFightGrade/XUiGridFightDataItem.lua
2022-12-26 14:06:01 +05:30

15 lines
419 B
Lua

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