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