forked from endernon/PGRData
17 lines
564 B
Lua
17 lines
564 B
Lua
|
--分光双星词缀展示界面:词缀详细显示控件
|
||
|
local XUiBuffTipsItem = XClass(nil, "XUiBuffTipsItem")
|
||
|
|
||
|
function XUiBuffTipsItem:Ctor(ui, rootUi)
|
||
|
self.GameObject = ui.gameObject
|
||
|
self.Transform = ui.transform
|
||
|
XTool.InitUiObject(self)
|
||
|
end
|
||
|
|
||
|
function XUiBuffTipsItem:RefreshData(showFightEventId)
|
||
|
self.Cfg = XFubenConfigs.GetStageFightEventDetailsByStageFightEventId(showFightEventId)
|
||
|
self.RImgIcon:SetRawImage(self.Cfg.Icon)
|
||
|
self.TxtName.text = self.Cfg.Name
|
||
|
self.TxtDesc.text = self.Cfg.Description
|
||
|
end
|
||
|
|
||
|
return XUiBuffTipsItem
|