【跨服天梯】战斗记录协议修改
parent
6c59983568
commit
e01694fa28
|
@ -93,7 +93,7 @@ function this.RankNodeAdapter(node, data)
|
||||||
curShowPersonInfo.personInfo.name = PracticeManager.SetNameColor(curShowPersonInfo.personInfo.name,curShowPersonInfo.personInfo.practiceLevel)
|
curShowPersonInfo.personInfo.name = PracticeManager.SetNameColor(curShowPersonInfo.personInfo.name,curShowPersonInfo.personInfo.practiceLevel)
|
||||||
lv_name.text = curShowPersonInfo.personInfo.servername.." "..curShowPersonInfo.personInfo.name--
|
lv_name.text = curShowPersonInfo.personInfo.servername.." "..curShowPersonInfo.personInfo.name--
|
||||||
power.text = curShowPersonInfo.personInfo.totalForce--Language[10090]..
|
power.text = curShowPersonInfo.personInfo.totalForce--Language[10090]..
|
||||||
time.text = GetDeltaTimeStr(data.fightData.fightSeed)
|
time.text = GetDeltaTimeStr(data.attackTime)--fightData.fightSeed)
|
||||||
curSort:GetComponent("Text").text = data.oldrank <= 1000 and data.oldrank or "1000+"
|
curSort:GetComponent("Text").text = data.oldrank <= 1000 and data.oldrank or "1000+"
|
||||||
nextSort:GetComponent("Text").text = data.rank <= 1000 and data.rank or "1000+"
|
nextSort:GetComponent("Text").text = data.rank <= 1000 and data.rank or "1000+"
|
||||||
curSort:SetActive(false)
|
curSort:SetActive(false)
|
||||||
|
@ -136,13 +136,15 @@ function this.RankNodeAdapter(node, data)
|
||||||
-- 给回放按钮添加事件
|
-- 给回放按钮添加事件
|
||||||
local replay = Util.GetGameObject(node, "replay")
|
local replay = Util.GetGameObject(node, "replay")
|
||||||
Util.AddOnceClick(replay, function()
|
Util.AddOnceClick(replay, function()
|
||||||
|
NetManager.ReplayWorldArenaRequest(data.recordId,function(msg)
|
||||||
local nameStr = curShowPersonInfo.personInfo.name.."|"..PlayerManager.nickName
|
local nameStr = curShowPersonInfo.personInfo.name.."|"..PlayerManager.nickName
|
||||||
local realResult = (data.result + 1) % 2 -- 服务器返回的是我的结果,转换为真实结果
|
local realResult = (data.result + 1) % 2 -- 服务器返回的是我的结果,转换为真实结果
|
||||||
local fightData = BattleManager.GetBattleServerData(data, 1)
|
local fightData = BattleManager.GetBattleServerData(msg, 1)
|
||||||
UIManager.OpenPanel(UIName.BattlePanel, fightData, BATTLE_TYPE.BACK, function()
|
UIManager.OpenPanel(UIName.BattlePanel, fightData, BATTLE_TYPE.BACK, function()
|
||||||
-- this:ClosePanel()
|
-- this:ClosePanel()
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -4877,6 +4877,22 @@ function this.GetWorldArenaRecordInfoRequest(func)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
--跨服天梯战斗记录回放
|
||||||
|
function this.ReplayWorldArenaRequest(_fightId,func)
|
||||||
|
local data = gtwprotos.WorldProto_pb.ReplayWorldArenaRequest()
|
||||||
|
data.fightId = _fightId
|
||||||
|
local msg = data:SerializeToString()
|
||||||
|
Network:SendMessageWithCallBack(MessageTypeProto_pb.ReplayWorldArenaRequest, MessageTypeProto_pb.ReplayWorldArenaResponse, msg, function(buffer)
|
||||||
|
local data = buffer:DataByte()
|
||||||
|
local msg = gtwprotos.WorldProto_pb.ReplayWorldArenaResponse()
|
||||||
|
msg:ParseFromString(data)
|
||||||
|
if func then
|
||||||
|
func(msg)
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
end
|
||||||
--鸿蒙阵
|
--鸿蒙阵
|
||||||
-- 鸿蒙阵 游戏开始 拿到的数据
|
-- 鸿蒙阵 游戏开始 拿到的数据
|
||||||
function this.HongMengInfoResponse(func)
|
function this.HongMengInfoResponse(func)
|
||||||
|
|
Loading…
Reference in New Issue