local UISyncTeamPVPBattleOverPanel = require("View/SyncTeamPVP/UISyncTeamPVPBattleOverPanel") local UIPKRoom3v3BattleOverPanel = UIViewClass(UISyncTeamPVPBattleOverPanel) function UIPKRoom3v3BattleOverPanel:InitInfo(context) self.isHistoryResult = false self.result = context self.thumbsUpId = self.result.ThumbsUpID self.iconsInfo = self.result.Icons self.mySelfPlayerID = BattleDataGetter.GetCurEntity():GetPlayerID() self.hideThumbsUp = true end function UIPKRoom3v3BattleOverPanel:ShowThumbsUpTips() --do nothing end function UIPKRoom3v3BattleOverPanel:SetResultInfo() local curCampId if BattleDataGetter.GetCurEntity() then curCampId = BattleDataGetter.GetCurEntity():GetCampID() end self.ourMvp = curCampId == 1 and self.result.camp1BestFighter or self.result.camp2BestFighter self.enemyMvp = curCampId == 1 and self.result.camp2BestFighter or self.result.camp1BestFighter UIUtils.SetActive(self.protect_Node, false) self.selfTotalDamage = 0 local ourFighterRecords = curCampId == 1 and self.result.camp1 or self.result.camp2 for i, v in ipairs(ourFighterRecords) do self.selfTotalDamage = self.selfTotalDamage + v.totalDamage end for i, v in ipairs(ourFighterRecords) do self.mySyncPVPTeamScroll:AddData(v, 0) end self.enemyTotalDamage = 0 local enemyFighterRecords = curCampId == 1 and self.result.camp2 or self.result.camp1 for i, v in ipairs(enemyFighterRecords) do self.enemyTotalDamage = self.enemyTotalDamage + v.totalDamage end for i, v in ipairs(enemyFighterRecords) do self.otherSyncPVPTeamScroll:AddData(v, 0) end end function UIPKRoom3v3BattleOverPanel:GetIsWin() local curCampId if BattleDataGetter.GetCurEntity() then curCampId = BattleDataGetter.GetCurEntity():GetCampID() end return curCampId == self.result.winnerCampId end function UIPKRoom3v3BattleOverPanel:GetIfShowRankScore() return false end function UIPKRoom3v3BattleOverPanel:OnExit() NotSyncBattleSetter.StopCurLevel(true) MDL.Level.SendRoleLeaveFuben() end return UIPKRoom3v3BattleOverPanel