【山河社稷图】修改

dev_chengFeng
zhangqiang 2021-05-22 15:26:30 +08:00
parent 8719603f64
commit a30616a9fc
4 changed files with 18 additions and 12 deletions

View File

@ -136,7 +136,7 @@ end
function this.HardStageReportRequset(_fightLevelData, callBack) function this.HardStageReportRequset(_fightLevelData, callBack)
NetManager.HardStageReportRequset( _fightLevelData.nodeId,function (msg)--FIGHT_LEVEL _fightLevelData.config.Chapter, NetManager.HardStageReportRequset( _fightLevelData.nodeId,function (msg)--FIGHT_LEVEL _fightLevelData.config.Chapter,
if msg.player and #msg.player > 0 then if msg.player and #msg.player > 0 then
UIManager.OpenPanel(UIName.FightLevelSingleLevelInfoPopup,FIGHTLEVEL_POPUP_TYPE.BackBattle,msg.player,_fightLevelData) UIManager.OpenPanel(UIName.FightLevelSingleLevelInfoPopup,FIGHTLEVEL_POPUP_TYPE.BackBattle,msg.player,_fightLevelData,callBack)
else else
PopupTipPanel.ShowTip("尚无符合条件的回放!") PopupTipPanel.ShowTip("尚无符合条件的回放!")
end end

View File

@ -102,10 +102,15 @@ function this.OnShowPanel()
end end
function this.ShowChapterPoint() function this.ShowChapterPoint()
local allNodeDatas = {}
for key, value in pairs(chapterData.node) do
table.insert(allNodeDatas,value)
end
table.sort(allNodeDatas, function(a,b) return a.nodeId < b.nodeId end)
local num = 0 local num = 0
for i = 1, #chapterData.node do for i = 1, #allNodeDatas do
if chapterData.node[i].config.UselessPoint then if allNodeDatas[i].config.UselessPoint then
for j = 1, #chapterData.node[i].config.UselessPoint do for j = 1, #allNodeDatas[i].config.UselessPoint do
num = num + 1 num = num + 1
end end
end end
@ -123,13 +128,13 @@ function this.ShowChapterPoint()
go.gameObject:SetActive(false) go.gameObject:SetActive(false)
end end
local index = 0 local index = 0
for i = 1, #chapterData.node do for i = 1, #allNodeDatas do
local isOpen = this.GetCurLevelIsOpen(chapterData.node[i])-- -1 未开启 0 开启 1 需解锁上一关 2 等级不足 local isOpen = this.GetCurLevelIsOpen(allNodeDatas[i])-- -1 未开启 0 开启 1 需解锁上一关 2 等级不足
if chapterData.node[i].config.UselessPoint then if allNodeDatas[i].config.UselessPoint then
for j = 1, #chapterData.node[i].config.UselessPoint do for j = 1, #allNodeDatas[i].config.UselessPoint do
index = index + 1 index = index + 1
allSmallPoint[index].gameObject:SetActive(true) allSmallPoint[index].gameObject:SetActive(true)
allSmallPoint[index].transform.localPosition = Vector3.New(chapterData.node[i].config.UselessPoint[j][1],chapterData.node[i].config.UselessPoint[j][2],0) allSmallPoint[index].transform.localPosition = Vector3.New(allNodeDatas[i].config.UselessPoint[j][1],allNodeDatas[i].config.UselessPoint[j][2],0)
local image = allSmallPoint[index]:GetComponent("Image") local image = allSmallPoint[index]:GetComponent("Image")
image.sprite = this.spLoader:LoadSprite(isOpen == 0 and point[1] or point[2]) image.sprite = this.spLoader:LoadSprite(isOpen == 0 and point[1] or point[2])
end end

View File

@ -44,7 +44,7 @@ function this:BindEvent()
end) end)
Util.AddClick(this.BackBattleBtn, function() Util.AddClick(this.BackBattleBtn, function()
FightLevelManager.HardStageReportRequset(fightLevelData, function() FightLevelManager.HardStageReportRequset(fightLevelData, function()
-- UIManager.OpenPanel(UIName.FightLevelSingleLevelInfoPopup,FIGHTLEVEL_POPUP_TYPE.MainLevel,fightLevelData) UIManager.OpenPanel(UIName.FightLevelSingleLevelInfoPopup,FIGHTLEVEL_POPUP_TYPE.MainLevel,fightLevelData)
end) end)
end) end)
Util.AddClick(this.rewardBtn, function() Util.AddClick(this.rewardBtn, function()

View File

@ -17,7 +17,7 @@ function this.RegisterMessage(network)
--监听红点推送 --监听红点推送
socket:RegistNetMessage(MessageTypeProto_pb.SEND_RED_POINT_INDICATION, this.ReceiveRedPoint) socket:RegistNetMessage(MessageTypeProto_pb.SEND_RED_POINT_INDICATION, this.ReceiveRedPoint)
--福利红包推送 --福利红包推送
socket:RegistNetMessage(MessageTypeProto_pb.WELFARE_RED_PACKET_INFO, this.WelfareRedPacketPush) -- socket:RegistNetMessage(MessageTypeProto_pb.WELFARE_RED_PACKET_INFO, this.WelfareRedPacketPush)
socket:RegistNetMessage(MessageTypeProto_pb.UPDATE_BAG_INDICATION, this.BackUpDataBagItemIdNumber) socket:RegistNetMessage(MessageTypeProto_pb.UPDATE_BAG_INDICATION, this.BackUpDataBagItemIdNumber)
socket:RegistNetMessage(MessageTypeProto_pb.SEND_CHAT_INFO_INDICATION, this.ReceiveFriendChat) socket:RegistNetMessage(MessageTypeProto_pb.SEND_CHAT_INFO_INDICATION, this.ReceiveFriendChat)
@ -920,7 +920,8 @@ function this.BackPatFaceData(buffer)
msg:ParseFromString(data) msg:ParseFromString(data)
PatFaceManager.SetPatFaceDaqta(msg) PatFaceManager.SetPatFaceDaqta(msg)
end end
--后端拍脸推送
--山河社稷图推送
function this.HardStageResponse(buffer) function this.HardStageResponse(buffer)
local data = buffer:DataByte() local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.HardStageResponse() local msg = PlayerInfoProto_pb.HardStageResponse()