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

15 lines
No EOL
549 B
Lua

local XUiGridInfestorExploreBuff = XClass(nil, "XUiGridInfestorExploreBuff")
function XUiGridInfestorExploreBuff:Ctor(ui)
self.GameObject = ui.gameObject
self.Transform = ui.transform
XTool.InitUiObject(self)
end
function XUiGridInfestorExploreBuff:Refresh(buffId)
self.TxtName.text = XFubenInfestorExploreConfigs.GetBuffName(buffId)
self.TxtDetails.text = XFubenInfestorExploreConfigs.GetBuffDes(buffId)
self.RImgBuffIcon:SetRawImage(XFubenInfestorExploreConfigs.GetBuffIcon(buffId))
end
return XUiGridInfestorExploreBuff