diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua index 2207241f9a..af2ac5b513 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua @@ -190,7 +190,7 @@ function this.GetMonsterFightRankInfo() local ranks,myRank = RankingManager.GetRankingInfo() Log("返回消息") this.SetPlayerInfo(ranks,myRank) - this.SetOtherPlayerInfo(ranks,myRank) + this.SetOtherPlayerInfo(ranks,myRank, true, true) end,nil,1) end @@ -209,7 +209,7 @@ function this.SetPlayerInfo(ranks,myRankInfo) 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 local rankFunc = function (index, item) @@ -218,12 +218,12 @@ function this.SetOtherPlayerInfo(ranks,myRankInfo) RankingManager.RequestNextWarPowerPageData(function() local ranks,myRank = RankingManager.GetRankingInfo() this.SetPlayerInfo(ranks,myRank) - this.SetOtherPlayerInfo(ranks,myRank) + this.SetOtherPlayerInfo(ranks, myRank) end) end end - this.ScrollView:SetData(ranks, rankFunc) + this.ScrollView:SetData(ranks, rankFunc, not isTop, not isAnim) end @@ -286,7 +286,7 @@ function this.GetTrialRankInfo() RankingManager.InitData(RANK_TYPE.TRIAL_RANK,function() local ranks,myRank = RankingManager.GetRankingInfo() this.SetPlayerRankInfo(ranks,myRank) - this.SetRoleRank(ranks,myRank) + this.SetRoleRank(ranks,myRank, true, true) end,nil,1) end @@ -310,7 +310,7 @@ function this.SetPlayerRankInfo(ranks,myRankInfo) 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 local rankFunc = function (index, item) @@ -327,7 +327,7 @@ function this.SetRoleRank(ranks,myRankInfo) --if MapTrialManager.curPage <= 1 then -- -- 重置排行列表 - this.ScrollView:SetData(ranks, rankFunc) + this.ScrollView:SetData(ranks, rankFunc, not isTop, not isAnim ) --else -- -- 刷新排行列表 -- this.ScrollView:RefreshData(msg.towerRanks, rankFunc)