【森罗幻境】排行榜信息冗余修改

dev_chengFeng
ZhangBiao 2021-07-01 15:42:23 +08:00
parent 8b187bfd5f
commit 36ccbe968b
3 changed files with 7 additions and 2 deletions

View File

@ -476,6 +476,8 @@ end
function CarbonScoreSortPanel:OnClose()
if callBack then callBack() end
this.noneImage:SetActive(false)
SubUIManager.Close(this.ScrollView)
this.ScrollView = nil
end
--界面销毁时调用(用于子类重写)
@ -485,6 +487,9 @@ function CarbonScoreSortPanel:OnDestroy()
playerHead:Recycle()
end
_PlayerHeadList = {}
if this.ScrollView then
SubUIManager.Close(this.ScrollView)
end
this.ScrollView = nil
end

View File

@ -62,7 +62,7 @@ function this.ReceiveNextRankingData(msg,fun)
local length=#this.curRankingData
for i, rank in ipairs(msg.ranks) do
-- LogGreen("UserRank "..rank.rankInfo.rank.." userName "..rank.userName.." rank.rankInfo.param1 "..rank.rankInfo.param1.." practiceLevel:"..rank.practiceLevel)
LogError("rank.practiceLevel:"..tostring(rank.practiceLevel))
-- LogError("rank.practiceLevel:"..tostring(rank.practiceLevel))
rank.userName = PracticeManager.SetNameColor(rank.userName,rank.practiceLevel)
this.curRankingData[length+i]=rank
end

View File

@ -59,7 +59,7 @@ local function ItemListOffset(self, offset)
if curRound > 0 then
newIndex = 1 - self.itemCount * (curRound - 1) + self.dataLine - i
i = self.itemCount - i + 1
print(j, i)
-- print(j, i)
go = self.cellItemList[j][i]
go.tran.anchoredPosition = go.tran.anchoredPosition - self.offsetV2 * curRound
SetUpdate(self, j + (newIndex - 1) * self.fixedCount, go)