PGRData/Script/matrix/xui/xuiguildwar/difficultselect/XUiGuildWarMapNodeDetailItem.lua

14 lines
No EOL
437 B
Lua

---@class XUiGuildWarMapNodeDetailItem
local XUiGuildWarMapNodeDetailItem = XClass(nil, "XUiGuildWarMapNodeDetailItem")
function XUiGuildWarMapNodeDetailItem:Ctor(uiPrefab)
XTool.InitUiObjectByUi(self, uiPrefab)
end
function XUiGuildWarMapNodeDetailItem:Refresh(data)
self.ImgNodeIcon:SetSprite(data.Icon)
self.TxtNodeName.text = data.Name
self.TxtNodeNum.text = "x" .. data.Num
end
return XUiGuildWarMapNodeDetailItem