【跨服排行】

dev_chengFeng
zhangqiang 2021-07-30 17:52:49 +08:00
parent 92f3ee123c
commit 98649b66c1
2 changed files with 10 additions and 3 deletions

View File

@ -5,9 +5,10 @@ local this = PlayWithSBFormation
--- 是否需要切换编队的功能
this.IsNeedChangeFormation = true
function this.Init(root, data)
function this.Init(root, data,_isCross)
this.root = root
this.pData = data
this.isCross = _isCross or false
this.InitView()
end
@ -55,7 +56,7 @@ function this.On_Btn2_Click()
-- 不用回放直接显示结果
UIManager.OpenPanel(UIName.ArenaResultPopup, arg)
end)
end,this.isCross)
end
-- 界面显示刷新

View File

@ -66,7 +66,7 @@ local _ViewConfig = {
tip = Language[10933],
isAddFriend = false,
btnType = {
{name = "切磋", func = 6},
{name = "切磋", func = 7},
}
},
}
@ -187,6 +187,7 @@ function PlayerInfoPopup:OnOpen(playerId, viewType,serverName)
[4] = this.RemoveFromBlackList,
[5] = this.GoToBlack,
[6] = this.JumpServerBattle,
[7] = this.JumpServerBattle_NORMAL,
}
end
@ -532,6 +533,11 @@ function this.JumpServerBattle()
-- end)
-- end)
end
-- 跨服天梯
function this.JumpServerBattle_NORMAL()
this:ClosePanel()
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.PLAY, this._PlayerData,true)
end
--界面关闭时调用(用于子类重写)
function PlayerInfoPopup:OnClose()
this.imprintObj:SetActive(false)