PGRData/Script/matrix/xui/xuibrilliantwalk/xuigrid/XUIBrilliantWalkAdditionalBuffGrid.lua
2024-09-01 22:49:41 +02:00

19 lines
No EOL
578 B
Lua

--被动浏览界面的grid
local XUIBrilliantWalkAdditionalBuffGrid = XClass(nil, "XUIBrilliantWalkAdditionalBuffGrid")
function XUIBrilliantWalkAdditionalBuffGrid:Ctor(perfabObject, rootUi)
self.GameObject = perfabObject.gameObject
self.Transform = perfabObject.transform
XTool.InitUiObject(self)
end
function XUIBrilliantWalkAdditionalBuffGrid:UpdateView(config)
self.TxtName.text = config.Name
self.TxtDesc.text = config.Desc
if config.Icon then
self.RImgIcon:SetRawImage(config.Icon)
end
end
return XUIBrilliantWalkAdditionalBuffGrid