巅峰赛刷新调位置 赛程增加-1

zhangqiang 2020-08-05 21:28:16 +08:00
parent 4d0b53adf9
commit 6238892d99
2 changed files with 11 additions and 4 deletions

View File

@ -113,9 +113,9 @@ function this.UpdateTopMatchStage(msg)
-- 刷新基础信息
this.RefreshBaseInfo()
Game.GlobalEvent:DispatchEvent(GameEvent.TopMatch.OnTopMatchDataUpdate)
--刷新排行信息
Game.GlobalEvent:DispatchEvent(GameEvent.ATM_RankView.OnRankChange)
-- Game.GlobalEvent:DispatchEvent(GameEvent.TopMatch.OnTopMatchDataUpdate)
-- --刷新排行信息
-- Game.GlobalEvent:DispatchEvent(GameEvent.ATM_RankView.OnRankChange)
LogGreen("this.baseInfo.battleState "..this.baseInfo.battleState)
-- 切换到准备阶段刷新一遍数据
@ -134,6 +134,10 @@ function this.UpdateTopMatchStage(msg)
this.RequestTopMatchBaseInfo()
this.RequestBetBaseInfo(nil,true)
end
Game.GlobalEvent:DispatchEvent(GameEvent.TopMatch.OnTopMatchDataUpdate)
--刷新排行信息
Game.GlobalEvent:DispatchEvent(GameEvent.ATM_RankView.OnRankChange)
end
-- 获取战斗记录
@ -452,7 +456,7 @@ function this.RequestEliminationDataMerge(EliminationData)
if newEliminationDataV and #newEliminationDataV > 0 then
local singledata = newEliminationDataV[1]
-- singledata.dataList = newEliminationDataV
local fightResult = 0 ---1 无记录 0前两场负 1 前两场胜 2 胜 3 负 4 胜负 5 负胜
local fightResult = -1 ---1 无记录 0前两场负 1 前两场胜 2 胜 3 负 4 胜负 5 负胜
for i = 1, #newEliminationDataV do
if i == 1 and newEliminationDataV[i].fightResult == 0 then
fightResult = 3

View File

@ -91,6 +91,9 @@ function this.SetHead(curPre,data,isShowWinImage)
end
--设置战斗回放按钮
function this.SetPlayBack(fightResult, id, defInfo, attackInfo)
if fightResult == -1 then
return
end
-- playBackBtn:SetActive(_IsShowData and fightResult~=-1)
-- Util.AddOnceClick(playBackBtn,function()
ArenaTopMatchManager.RequestRecordFightData(fightResult,id, attackInfo.name.."|"..defInfo.name,function()