【山河社稷图】修改

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)
NetManager.HardStageReportRequset( _fightLevelData.nodeId,function (msg)--FIGHT_LEVEL _fightLevelData.config.Chapter,
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
PopupTipPanel.ShowTip("尚无符合条件的回放!")
end

View File

@ -102,10 +102,15 @@ function this.OnShowPanel()
end
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
for i = 1, #chapterData.node do
if chapterData.node[i].config.UselessPoint then
for j = 1, #chapterData.node[i].config.UselessPoint do
for i = 1, #allNodeDatas do
if allNodeDatas[i].config.UselessPoint then
for j = 1, #allNodeDatas[i].config.UselessPoint do
num = num + 1
end
end
@ -123,13 +128,13 @@ function this.ShowChapterPoint()
go.gameObject:SetActive(false)
end
local index = 0
for i = 1, #chapterData.node do
local isOpen = this.GetCurLevelIsOpen(chapterData.node[i])-- -1 未开启 0 开启 1 需解锁上一关 2 等级不足
if chapterData.node[i].config.UselessPoint then
for j = 1, #chapterData.node[i].config.UselessPoint do
for i = 1, #allNodeDatas do
local isOpen = this.GetCurLevelIsOpen(allNodeDatas[i])-- -1 未开启 0 开启 1 需解锁上一关 2 等级不足
if allNodeDatas[i].config.UselessPoint then
for j = 1, #allNodeDatas[i].config.UselessPoint do
index = index + 1
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")
image.sprite = this.spLoader:LoadSprite(isOpen == 0 and point[1] or point[2])
end

View File

@ -44,7 +44,7 @@ function this:BindEvent()
end)
Util.AddClick(this.BackBattleBtn, 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)
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.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.SEND_CHAT_INFO_INDICATION, this.ReceiveFriendChat)
@ -920,7 +920,8 @@ function this.BackPatFaceData(buffer)
msg:ParseFromString(data)
PatFaceManager.SetPatFaceDaqta(msg)
end
--后端拍脸推送
--山河社稷图推送
function this.HardStageResponse(buffer)
local data = buffer:DataByte()
local msg = PlayerInfoProto_pb.HardStageResponse()