diff --git a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua index c4529f1efa..4359194c7e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Carbon/CarbonScoreSortPanel.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingManager.lua b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingManager.lua index 62f4adf86e..16c277d1ba 100644 --- a/Assets/ManagedResources/~Lua/Modules/Ranking/RankingManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Ranking/RankingManager.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua b/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua index 2c19b75b18..813299cfed 100644 --- a/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua +++ b/Assets/ManagedResources/~Lua/View/ScrollCycleView.lua @@ -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)