少年修仙传客户端代码仓库
client_linchunjie
2018-09-21 a9e6a52fb2f02e22e6297d3100501e5e6a2444a2
Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
4个文件已修改
36 ■■■■■ 已修改文件
System/Dogz/DogzModel.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dogz/DogzWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/ItemTipsModel.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Strengthening/GodBeastReinforcementWin.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dogz/DogzModel.cs
@@ -161,12 +161,12 @@
            }
        }
        public event Action<int> OpenFuncEvent;
        public void OpenDogzFuncEvent(int functionOrder)
        public event Action<int,int> OpenFuncEvent;
        public void OpenDogzFuncEvent(int functionOrder,int equipIndex)
        {
            if(OpenFuncEvent != null)
            {
                OpenFuncEvent(functionOrder);
                OpenFuncEvent(functionOrder,equipIndex);
            }
        }
System/Dogz/DogzWin.cs
@@ -70,8 +70,9 @@
        }
        private void OnOpenFuncEvent(int order)
        private void OnOpenFuncEvent(int order,int equipIndex)
        {
            ModelCenter.Instance.GetModel<GodBeastModel>().ItemPlace = equipIndex;
            funcBtnGroup.TriggerByOrder(order);
            if(WindowCenter.Instance.CheckOpen<DogzPackWin>())
            {
System/KnapSack/Logic/ItemTipsModel.cs
@@ -742,9 +742,13 @@
               dogzModel.CheckPutOff(dogzModel.GetDogzEquipPlaceByIndex(attrData.index));
            });
            attrData.SetTipsFuncBtn(ItemWinBtnType.strength, (ItemWinBtnType, ItemAttrData) => {
                dogzModel.OpenDogzFuncEvent(1);
            });
            if(dogzModel.TryGetAssistDogzState(dogzModel.presentSelectDogz))
            {
                attrData.SetTipsFuncBtn(ItemWinBtnType.strength, (ItemWinBtnType, ItemAttrData) => {
                    dogzModel.OpenDogzFuncEvent(1, attrData.index);
                });
            }
        }
        /// <summary>
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;