PGRData/Resources/Scripts/XUi/XUiExpedition/MainPage/ChapterBuff/XUiGlobalComboIcon.lua

17 lines
551 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
--虚像地平线全局增益图标控件
local XUiGlobalComboIcon = XClass(nil, "XUiGlobalComboIcon")
function XUiGlobalComboIcon:Ctor(ui, rootUi)
self.GameObject = ui.gameObject
self.Transform = ui.transform
self.RootUi = rootUi
self.RawBuffIcon = self.Transform:Find("RawBuffIcon"):GetComponent("RawImage")
end
function XUiGlobalComboIcon:RefreshData(comboConfig)
self.GlobalComboId = comboConfig.Id
self.GlobalComboConfig = comboConfig
self.RawBuffIcon:SetRawImage(comboConfig.IconPath)
end
return XUiGlobalComboIcon