少年修仙传客户端代码仓库
hch
2023-07-10 dd4e0283b310bf22402696985637d8b0398c073f
0312 根据读表初始化背包格子
3个文件已修改
14 ■■■■■ 已修改文件
System/KnapSack/New/BagWin.cs 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/DepotWin.cs 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/TempKnapSackBasic.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/New/BagWin.cs
@@ -191,9 +191,9 @@
        #region 共用部分
        public override void OnCreateGridLineCell(ScrollerController gridCtrl)
        public void OnCreateGridLineCell(ScrollerController gridCtrl)
        {
            base.OnCreateGridLineCell(gridCtrl);
            base.OnCreateGridLineCell(gridCtrl, GeneralDefine.maxBagGridCount / lineGird);
        }
System/KnapSack/New/DepotWin.cs
@@ -127,9 +127,9 @@
        #region 共用部分
        public override void OnCreateGridLineCell(ScrollerController gridCtrl)
        public void OnCreateGridLineCell(ScrollerController gridCtrl)
        {
            base.OnCreateGridLineCell(gridCtrl);
            base.OnCreateGridLineCell(gridCtrl, GeneralDefine.maxDepotGridCount / lineGird);
        }
        public void OnRefreshGridCell(ScrollerDataType type, CellView cell)
System/KnapSack/New/TempKnapSackBasic.cs
@@ -17,6 +17,7 @@
    public class TempKnapSackBasic : Window
    {
        PackModel packModel  {  get { return   ModelCenter.Instance.GetModel<PackModel>(); }  }
        public int lineGird = 5;    //每行格子数
        protected override void BindController()
        {
@@ -50,7 +51,7 @@
        #region 背包空格的逻辑
        public virtual void OnCreateGridLineCell(ScrollerController gridCtrl)
        public virtual void OnCreateGridLineCell(ScrollerController gridCtrl, int line)
        {
            if (gridCtrl.GetNumberOfCells(gridCtrl.m_Scorller) > 0)
            {
@@ -60,8 +61,7 @@
            {
              
                gridCtrl.Refresh();
                int code = 0;
                for (code = 0; code < 20; code++)
                for (int code = 0; code < line; code++)
                {
                    gridCtrl.AddCell(ScrollerDataType.Header, code);