【森罗幻境】排行榜信息冗余修改
parent
8b187bfd5f
commit
36ccbe968b
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue