PGRData/Script/matrix/xui/xuiequipguide/XUiEquipGuideSuccess.lua

22 lines
683 B
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
local XUiEquipGuideSuccess = XLuaUiManager.Register(XLuaUi, "UiEquipGuideSuccess")
function XUiEquipGuideSuccess:OnAwake()
self:InitCb()
end
function XUiEquipGuideSuccess:OnStart(characterId)
self.RImgIcon:SetRawImage(XDataCenter.CharacterManager.GetCharHalfBodyBigImage(characterId))
self.TxtName.text = XCharacterConfigs.GetCharacterLogName(characterId)
end
function XUiEquipGuideSuccess:InitCb()
self.BtnClose.CallBack = function()
if XLuaUiManager.IsUiShow("UiEquipGuideDetail")
or XLuaUiManager.IsUiLoad("UiEquipGuideDetail") then
XLuaUiManager.Remove("UiEquipGuideDetail")
end
self:Close()
end
end