PGRData/Script/matrix/xui/xuiarena/XUiArenaContributeTipsGrid.lua

19 lines
No EOL
500 B
Lua

local XUiArenaContributeTipsGrid = XClass(nil, "UiArenaContributeTipsGrid")
function XUiArenaContributeTipsGrid:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUiArenaContributeTipsGrid:Init(uiRoot)
self.UiRoot = uiRoot
end
function XUiArenaContributeTipsGrid:Refresh(index, contributeScore)
self.TxtRank.text = "No." .. index
self.TxtNumber.text = "+" .. contributeScore
end
return XUiArenaContributeTipsGrid