2023-07-14 19:35:33 +00:00
|
|
|
local XUiGridEquip = require("XUi/XUiEquipAwarenessReplace/XUiGridEquip")
|
|
|
|
|
|
|
|
local XUiGridSuitPrefabEquip = XClass(nil, "XUiGridSuitPrefabEquip")
|
|
|
|
|
|
|
|
function XUiGridSuitPrefabEquip:Ctor(ui, parent)
|
|
|
|
self.GameObject = ui.gameObject
|
|
|
|
self.Transform = ui.transform
|
|
|
|
self.Parent = parent
|
|
|
|
XTool.InitUiObject(self)
|
|
|
|
end
|
|
|
|
|
|
|
|
function XUiGridSuitPrefabEquip:Refresh(conflictInfo)
|
|
|
|
self.RImgHead:SetRawImage(XDataCenter.CharacterManager.GetCharRoundnessHeadIcon(conflictInfo.CharacterId))
|
2024-09-01 20:49:41 +00:00
|
|
|
local grid = XUiGridEquip.New(self.GridEquip, self.Parent, nil, true)
|
2023-07-14 19:35:33 +00:00
|
|
|
grid:InitRootUi(self.Parent)
|
|
|
|
grid:Refresh(conflictInfo.EquipId)
|
|
|
|
end
|
|
|
|
|
|
|
|
return XUiGridSuitPrefabEquip
|