少年修仙传客户端代码仓库
client_Wu Xijin
2019-02-19 77561bb15f0a5d45146fdf454726393e3987cc23
System/GatheringSoul/GatherSoulHoleBehaviour.cs
@@ -102,20 +102,20 @@
                    data.SetGatherSoul(item.level, hole);
                    GatherSoulComposeModel.Compose compose;
                    bool requireCompose = composeModel.ExistInComposeMat(item.id, out compose);
                    data.SetTipsFuncBtn(ItemWinBtnType.putOff, OnTipFunc);
                    data.SetTipsFuncBtn(ItemOperateType.putOff, OnTipFunc);
                    if (requireCompose)
                    {
                        data.SetTipsFuncBtn(ItemWinBtnType.compose, OnTipFunc);
                        data.SetTipsFuncBtn(ItemOperateType.compose, OnTipFunc);
                    }
                    if (!model.IsGatherSoulMaxLevel(item.id, item.level))
                    {
                        data.SetTipsFuncBtn(ItemWinBtnType.LevelUp, OnTipFunc);
                        data.SetTipsFuncBtn(ItemOperateType.LevelUp, OnTipFunc);
                    }
                    List<GatherSoulItem> list = new List<GatherSoulItem>();
                    model.TryGetSatisfyReplaceSouls(hole, ref list);
                    if (list.Count > 0)
                    {
                        data.SetTipsFuncBtn(ItemWinBtnType.Replace, OnTipFunc);
                        data.SetTipsFuncBtn(ItemOperateType.Replace, OnTipFunc);
                        list = null;
                    }
                    itemTipsModel.SetItemTipsModel(data);
@@ -151,11 +151,11 @@
            m_ContaienrRedpoint.gameObject.SetActive(requireRedpoint);
        }
        private void OnTipFunc(ItemWinBtnType funcType, string arg2)
        private void OnTipFunc(ItemOperateType funcType, string arg2)
        {
            switch (funcType)
            {
                case ItemWinBtnType.compose:
                case ItemOperateType.compose:
                    {
                        GatherSoulItem item;
                        if (model.TryGetItem(hole, out item))
@@ -164,7 +164,7 @@
                        }
                    }
                    break;
                case ItemWinBtnType.putOff:
                case ItemOperateType.putOff:
                    {
                        WindowCenter.Instance.Close<GatherSoulTipWin>();
                        GatherSoulItem item;
@@ -174,12 +174,12 @@
                        }
                    }
                    break;
                case ItemWinBtnType.LevelUp:
                case ItemOperateType.LevelUp:
                    WindowCenter.Instance.Close<GatherSoulTipWin>();
                    GatherSoulLevelUpWin.selectHole = hole;
                    WindowCenter.Instance.Open<GatherSoulLevelUpWin>();
                    break;
                case ItemWinBtnType.Replace:
                case ItemOperateType.Replace:
                    WindowCenter.Instance.Close<GatherSoulTipWin>();
                    GatherSoulEquipListWin.selectHole = hole;
                    WindowCenter.Instance.Open<GatherSoulEquipListWin>();