少年修仙传客户端代码仓库
client_Zxw
2018-09-21 3031b5d58228853a6288f7ea809ba3d15a2b41ce
System/Strengthening/GodBeastReinforcementWin.cs
@@ -39,6 +39,7 @@
        public static event Action<int> ChooseToModify;
        private List<GodBeastClass> GodBeastList = new List<GodBeastClass>();
        private int CurrentlySelected = 0;
        private int JumpIndex = 0;
        #region Built-in
        protected override void BindController()
        {
@@ -53,7 +54,7 @@
        {
            CurrentlySelected = 0;
            GetGodBeast();//获取神兽强化装备信息
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
            if (godBeastModel.ItemPlace != -1)
            {
                for (int i = 0; i < GodBeastList.Count; i++)
@@ -67,7 +68,7 @@
                        {
                            return x.ItemPlace == godBeastModel.ItemPlace;
                        });
                        m_ScrollerController.JumpIndex(Index);
                        JumpIndex = Index;
                    }
                }
            }
@@ -77,14 +78,17 @@
                {
                    CurrentlySelected = GodBeastList[0].LocationMarker;
                    GetDogZBagIndex();
                    m_ScrollerController.JumpIndex(0);
                    JumpIndex = 0;
                }
            }
            m_ScrollerController.OnRefreshCell += OnRefreshGridCell;
            }
            OnCreateGridLineCell(m_ScrollerController);
            m_GodBeastSlidingList.Init();
            m_GodBeastAttributes.Init();
            m_GodBeastAttributes.GetGodBeastLocationMarker(CurrentlySelected);
            m_GodBeastAttributes.GetGodBeastLocationMarker(CurrentlySelected);
            m_ScrollerController.JumpIndex(JumpIndex);
        }
        protected override void OnAfterOpen()
@@ -95,6 +99,7 @@
        protected override void OnPreClose()
        {
            JumpIndex = 0;
            godBeastModel.ItemPlace = -1;
           // godBeastModel.Absorption_Dic.Clear();
            playerPack.RefreshItemCountAct -= RefreshItemCountAct;