hch
2025-11-26 b6012660fb854274539a032294bb9dbb0b75053c
Main/System/HeroUI/HeroCollectionWin.cs
@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
@@ -114,6 +115,8 @@
    void CreateScroller()
    {
        int jumpIndex = -1;
        int index = -1;
        heroListScroller.Refresh();
        var _List = HeroUIManager.Instance.heroCollectDict.Keys.ToList();
        _List.Reverse();
@@ -128,17 +131,30 @@
            for (int j = 0; j < ids.Count; j++)
            {
                if (j % 4 == 0)
                {
                {
                    index++;
                    CellInfo cellInfo = new CellInfo();
                    cellInfo.infoInt1 = _List[i];
                    heroListScroller.AddCell(ScrollerDataType.Normal, j, cellInfo);
                }
                if (jumpIndex == -1)
                {
                    //检查每个武将
                    if (HeroUIManager.Instance.IsBookShowRedPoint(ids[j]))
                    {
                        jumpIndex = index;
                    }
                }
            }
            index++;
        }
        heroListScroller.Restart();
        heroListScroller.JumpIndex(jumpIndex);
    }
    void OnRefreshCell(ScrollerDataType type, CellView cell)
    {
        if (type == ScrollerDataType.Header)