少年修仙传客户端代码仓库
client_Zxw
2019-03-21 0bc69c09d8b861b6eb51e543ce107910acdc3b5c
3127 【BUG】【2.0】拍卖,拍卖记录条数
1个文件已修改
8 ■■■■ 已修改文件
System/Auction/TransactionRecordWin.cs 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/TransactionRecordWin.cs
@@ -26,12 +26,15 @@
        AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
        private List<AuctionItemClass> AuctionRecordList = new List<AuctionItemClass>();
        int AuctionType = 0;
        int MaxCount = 0;
        #region Built-in
        protected override void BindController()
        {
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
            m_ScrollerControllerType.OnRefreshCell += OnRefreshGridCellType;
            m_ScrollerController.lockType = EnhanceLockType.KeepVertical;
            var count = FuncConfigConfig.Get("AuctionHouse").Numerical3;
            MaxCount = int.Parse(count);
        }
        protected override void AddListeners()
@@ -96,7 +99,10 @@
            gridCtrl.Refresh();
            for (int i = 0; i < AuctionRecordList.Count; i++)
            {
                gridCtrl.AddCell(ScrollerDataType.Header, i);
                if (i < MaxCount)
                {
                    gridCtrl.AddCell(ScrollerDataType.Header, i);
                }
            }
            gridCtrl.Restart();
        }