【心魔试炼】排行榜有空格
parent
79b84039b9
commit
e248dcff8c
|
|
@ -190,7 +190,7 @@ function this.GetMonsterFightRankInfo()
|
||||||
local ranks,myRank = RankingManager.GetRankingInfo()
|
local ranks,myRank = RankingManager.GetRankingInfo()
|
||||||
Log("返回消息")
|
Log("返回消息")
|
||||||
this.SetPlayerInfo(ranks,myRank)
|
this.SetPlayerInfo(ranks,myRank)
|
||||||
this.SetOtherPlayerInfo(ranks,myRank)
|
this.SetOtherPlayerInfo(ranks,myRank, true, true)
|
||||||
end,nil,1)
|
end,nil,1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -209,7 +209,7 @@ function this.SetPlayerInfo(ranks,myRankInfo)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- 其他玩家的排行
|
-- 其他玩家的排行
|
||||||
function this.SetOtherPlayerInfo(ranks,myRankInfo)
|
function this.SetOtherPlayerInfo(ranks,myRankInfo, isTop, isAnim)
|
||||||
if #ranks == 0 or not ranks then Log(Language[10267]) this.noneImage:SetActive(true) return end
|
if #ranks == 0 or not ranks then Log(Language[10267]) this.noneImage:SetActive(true) return end
|
||||||
|
|
||||||
local rankFunc = function (index, item)
|
local rankFunc = function (index, item)
|
||||||
|
|
@ -218,12 +218,12 @@ function this.SetOtherPlayerInfo(ranks,myRankInfo)
|
||||||
RankingManager.RequestNextWarPowerPageData(function()
|
RankingManager.RequestNextWarPowerPageData(function()
|
||||||
local ranks,myRank = RankingManager.GetRankingInfo()
|
local ranks,myRank = RankingManager.GetRankingInfo()
|
||||||
this.SetPlayerInfo(ranks,myRank)
|
this.SetPlayerInfo(ranks,myRank)
|
||||||
this.SetOtherPlayerInfo(ranks,myRank)
|
this.SetOtherPlayerInfo(ranks, myRank)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
this.ScrollView:SetData(ranks, rankFunc)
|
this.ScrollView:SetData(ranks, rankFunc, not isTop, not isAnim)
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -286,7 +286,7 @@ function this.GetTrialRankInfo()
|
||||||
RankingManager.InitData(RANK_TYPE.TRIAL_RANK,function()
|
RankingManager.InitData(RANK_TYPE.TRIAL_RANK,function()
|
||||||
local ranks,myRank = RankingManager.GetRankingInfo()
|
local ranks,myRank = RankingManager.GetRankingInfo()
|
||||||
this.SetPlayerRankInfo(ranks,myRank)
|
this.SetPlayerRankInfo(ranks,myRank)
|
||||||
this.SetRoleRank(ranks,myRank)
|
this.SetRoleRank(ranks,myRank, true, true)
|
||||||
end,nil,1)
|
end,nil,1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -310,7 +310,7 @@ function this.SetPlayerRankInfo(ranks,myRankInfo)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 设置玩家排行
|
-- 设置玩家排行
|
||||||
function this.SetRoleRank(ranks,myRankInfo)
|
function this.SetRoleRank(ranks,myRankInfo, isTop, isAnim )
|
||||||
if #ranks == 0 or not ranks then Log(Language[10267]) return end
|
if #ranks == 0 or not ranks then Log(Language[10267]) return end
|
||||||
|
|
||||||
local rankFunc = function (index, item)
|
local rankFunc = function (index, item)
|
||||||
|
|
@ -327,7 +327,7 @@ function this.SetRoleRank(ranks,myRankInfo)
|
||||||
|
|
||||||
--if MapTrialManager.curPage <= 1 then
|
--if MapTrialManager.curPage <= 1 then
|
||||||
-- -- 重置排行列表
|
-- -- 重置排行列表
|
||||||
this.ScrollView:SetData(ranks, rankFunc)
|
this.ScrollView:SetData(ranks, rankFunc, not isTop, not isAnim )
|
||||||
--else
|
--else
|
||||||
-- -- 刷新排行列表
|
-- -- 刷新排行列表
|
||||||
-- this.ScrollView:RefreshData(msg.towerRanks, rankFunc)
|
-- this.ScrollView:RefreshData(msg.towerRanks, rankFunc)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue