PGRData/Script/matrix/xui/xuireform/XUiReformBuffDetail.lua
2024-09-01 22:49:41 +02:00

21 lines
No EOL
642 B
Lua

local XUiReformBuffDetail = XLuaUiManager.Register(XLuaUi, "UiReformBuffDetail")
function XUiReformBuffDetail:OnAwake()
self:RegisterUiEvents()
end
function XUiReformBuffDetail:OnStart(data)
self.TxtName.text = data.Name
self.RImgIcon:SetRawImage(data.Icon)
--self.TxtStarCount.text = data.StarCount
self.TxtStarCount.transform.parent.gameObject:SetActiveEx(false)
self.TxtDescription.text = data.Description
end
--######################## 私有方法 ########################
function XUiReformBuffDetail:RegisterUiEvents()
self.BtnClose.CallBack = function() self:Close() end
end
return XUiReformBuffDetail