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

22 lines
No EOL
700 B
Lua

local XUiGridUnionRankTab = XClass(nil, "XUiGridUnionRankTab")
function XUiGridUnionRankTab:Ctor(ui, rootUi)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.RootUi = rootUi
XTool.InitUiObject(self)
end
function XUiGridUnionRankTab:Refresh(rankLevelTemplate)
local levelDesc = CS.XTextManager.GetText("UnionRankLevel", rankLevelTemplate.MinLevel, rankLevelTemplate.MaxLevel)
self.GridRankLevel:SetNameByGroup(0, levelDesc)
self.GridRankLevel:SetNameByGroup(1, rankLevelTemplate.Name)
self.RImgRankIcon:SetRawImage(rankLevelTemplate.Icon)
end
function XUiGridUnionRankTab:GetUiButton()
return self.GridRankLevel
end
return XUiGridUnionRankTab