parent
fa64d90f08
commit
579f2806c3
|
@ -159,13 +159,13 @@ function this.RequestArenaChallenge(index, isSkip, func)
|
||||||
arg.result = msg.fightResult
|
arg.result = msg.fightResult
|
||||||
arg.blue = {}
|
arg.blue = {}
|
||||||
arg.blue.uid = PlayerManager.uid
|
arg.blue.uid = PlayerManager.uid
|
||||||
arg.blue.name = PlayerManager.nickName
|
arg.blue.name = JingJiShouWeiToEn(PlayerManager.nickName)
|
||||||
arg.blue.head = PlayerManager.head
|
arg.blue.head = PlayerManager.head
|
||||||
arg.blue.frame = HeadManager.GetCurFrameId()
|
arg.blue.frame = HeadManager.GetCurFrameId()
|
||||||
arg.blue.deltaScore = msg.myScoreChange
|
arg.blue.deltaScore = msg.myScoreChange
|
||||||
arg.red= {}
|
arg.red= {}
|
||||||
arg.red.uid = enemy.personInfo.uid
|
arg.red.uid = enemy.personInfo.uid
|
||||||
arg.red.name =JingJiShouWeiToEn(enemy.personInfo.name)
|
arg.red.name = JingJiShouWeiToEn(enemy.personInfo.name)
|
||||||
arg.red.head = enemy.personInfo.head
|
arg.red.head = enemy.personInfo.head
|
||||||
arg.red.frame = enemy.personInfo.headFrame
|
arg.red.frame = enemy.personInfo.headFrame
|
||||||
arg.red.deltaScore = msg.defScoreChange
|
arg.red.deltaScore = msg.defScoreChange
|
||||||
|
@ -226,6 +226,9 @@ function this.RequestArenaRecord()
|
||||||
-- 请求刷新数据,并刷新显示
|
-- 请求刷新数据,并刷新显示
|
||||||
NetManager.RequestArenaRecord(function(msg)
|
NetManager.RequestArenaRecord(function(msg)
|
||||||
this.ArenaRecords = msg.arenaRecordInfo
|
this.ArenaRecords = msg.arenaRecordInfo
|
||||||
|
for k,v in ipairs(this.ArenaRecords) do
|
||||||
|
v.attackInfo.name = JingJiShouWeiToEn(v.attackInfo.name)
|
||||||
|
end
|
||||||
table.sort(this.ArenaRecords, function(a,b)
|
table.sort(this.ArenaRecords, function(a,b)
|
||||||
return a.attackTime > b.attackTime
|
return a.attackTime > b.attackTime
|
||||||
end)
|
end)
|
||||||
|
|
|
@ -88,6 +88,8 @@ function this.RequestTopMatchBaseInfo(func)
|
||||||
this.baseInfo.loser = msg.loser--是否被淘汰
|
this.baseInfo.loser = msg.loser--是否被淘汰
|
||||||
|
|
||||||
this.myBattleInfo = msg.championBattleInfo
|
this.myBattleInfo = msg.championBattleInfo
|
||||||
|
this.myBattleInfo.myInfo.name = JingJiShouWeiToEn(this.myBattleInfo.myInfo.name)
|
||||||
|
this.myBattleInfo.enemyInfo.name = JingJiShouWeiToEn(this.myBattleInfo.enemyInfo.name)
|
||||||
isChange = false
|
isChange = false
|
||||||
this.BaseDataEndTimeCountDown()
|
this.BaseDataEndTimeCountDown()
|
||||||
this.RefreshBaseInfo()
|
this.RefreshBaseInfo()
|
||||||
|
@ -147,6 +149,10 @@ function this.RequestBattleHistory(func)
|
||||||
-- 获取巅峰赛战斗记录
|
-- 获取巅峰赛战斗记录
|
||||||
NetManager.GetTopMatchHistoryBattle(function(msg)
|
NetManager.GetTopMatchHistoryBattle(function(msg)
|
||||||
this.battleHistoryInfo = msg.enemyPairInfo
|
this.battleHistoryInfo = msg.enemyPairInfo
|
||||||
|
for k,v in ipairs(this.battleHistoryInfo) do
|
||||||
|
v.blueEnemy.personInfo.name = JingJiShouWeiToEn(v.blueEnemy.personInfo.name)
|
||||||
|
v.redEnemy.personInfo.name = JingJiShouWeiToEn(v.redEnemy.personInfo.name)
|
||||||
|
end
|
||||||
-- 对历史记录排序
|
-- 对历史记录排序
|
||||||
table.sort(this.battleHistoryInfo, function(a, b)
|
table.sort(this.battleHistoryInfo, function(a, b)
|
||||||
return a.roundTimes > b.roundTimes
|
return a.roundTimes > b.roundTimes
|
||||||
|
@ -246,6 +252,8 @@ function this.RequestBetBaseInfo(func,isPlayBattle)
|
||||||
-- 获取巅峰战信息
|
-- 获取巅峰战信息
|
||||||
NetManager.GetBetMatchInfo(0, function(msg)
|
NetManager.GetBetMatchInfo(0, function(msg)
|
||||||
this.betBattleInfo = msg.championBattleInfo
|
this.betBattleInfo = msg.championBattleInfo
|
||||||
|
this.betBattleInfo.myInfo.name = JingJiShouWeiToEn(this.betBattleInfo.myInfo.name)
|
||||||
|
this.betBattleInfo.enemyInfo.name = JingJiShouWeiToEn(this.betBattleInfo.enemyInfo.name)
|
||||||
isChange = false
|
isChange = false
|
||||||
-- LogGreen("竞猜双方uid "..msg.championBattleInfo.myInfo.uid.." "..msg.championBattleInfo.enemyInfo.uid)
|
-- LogGreen("竞猜双方uid "..msg.championBattleInfo.myInfo.uid.." "..msg.championBattleInfo.enemyInfo.uid)
|
||||||
this.betRateInfo = msg.championBetInfo
|
this.betRateInfo = msg.championBetInfo
|
||||||
|
|
Loading…
Reference in New Issue