PGRData/Script/matrix/xui/xuiguildwar/XUiGuildWarBossReaults.lua

27 lines
No EOL
874 B
Lua

local XUiGuildWarBossReaults = XLuaUiManager.Register(XLuaUi, "UiGuildWarBossReaults")
function XUiGuildWarBossReaults:OnAwake()
self.GuildWarManager = XDataCenter.GuildWarManager
self.BattleManager = self.GuildWarManager.GetBattleManager()
self.CloseCallBack = nil
self:RegisterUiEvents()
end
function XUiGuildWarBossReaults:OnStart(closeCallBack)
self.CloseCallBack = closeCallBack
self.TxtDesc.text = XUiHelper.GetText("GuildWarBossSettleTip", self.GuildWarManager.GetDifficultyName(
self.BattleManager:GetDifficultyId()))
end
function XUiGuildWarBossReaults:RegisterUiEvents()
XUiHelper.RegisterClickEvent(self, self.BtnClose, self.Close)
end
function XUiGuildWarBossReaults:Close()
if self.CloseCallBack then
self.CloseCallBack()
end
XUiGuildWarBossReaults.Super.Close(self)
end
return XUiGuildWarBossReaults