16 lines
No EOL
472 B
Lua
16 lines
No EOL
472 B
Lua
local XUiMaverick2DetailsGrid = XClass(nil, "UiMaverick2DetailsGrid")
|
|
|
|
function XUiMaverick2DetailsGrid:Ctor(ui)
|
|
self.GameObject = ui.gameObject
|
|
self.Transform = ui.transform
|
|
|
|
XTool.InitUiObject(self)
|
|
end
|
|
|
|
function XUiMaverick2DetailsGrid:Refresh(talentInfo)
|
|
self.RImgIcon:SetRawImage(talentInfo.Icon)
|
|
self.TxtLv.text = XUiHelper.GetText("Maverick2TalentLv", talentInfo.Level)
|
|
self.TxtDesc.text = talentInfo.Desc
|
|
end
|
|
|
|
return XUiMaverick2DetailsGrid |