少年修仙传客户端代码仓库
4769 【前端】【1.3】合成功能预告支持子项一个都未开启时预告,可选中预告中的未开启的合成子按钮
5个文件已修改
97 ■■■■ 已修改文件
System/Compose/New/ComposeDogzEquipWin.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeEquipWin.cs 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeTicketWin.cs 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeToolsWin.cs 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeWingsWin.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Compose/New/ComposeDogzEquipWin.cs
@@ -297,15 +297,6 @@
        private void UpdateThirdType(int thirdType)
        {
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.MountDogz, curSecondType, thirdType, out thirdTypeData);
            if (thirdTypeData != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
                    return;
                }
            }
            curThirdType = thirdType;
            OnClickThirdType();
            CreateTypeCell();
@@ -480,6 +471,14 @@
        private void OnClickComposeBtn()
        {
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1);
        }
System/Compose/New/ComposeEquipWin.cs
@@ -333,15 +333,6 @@
        private void UpdateThirdType(int thirdType)
        {
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType,thirdType, out thirdTypeData);
            if(thirdTypeData != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
                    return;
                }
            }
            curThirdType = thirdType;
            OnClickThirdType();
            CreateTypeCell();
@@ -641,6 +632,15 @@
        private void OnClickComposeBtn()
        {
            if (compoundModel != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                    return;
                }
            }
            composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1,10000,isIncreaseRate);
        }
System/Compose/New/ComposeTicketWin.cs
@@ -326,15 +326,6 @@
        private void UpdateThirdType(int thirdType)
        {
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Ticket, curSecondType, thirdType, out thirdTypeData);
            if (thirdTypeData != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
                    return;
                }
            }
            curThirdType = thirdType;
            CreateTypeCell();
        }
@@ -469,6 +460,13 @@
            fixedItemIndexDict.Clear();
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            List<int> composeCountlist = new List<int>();
            SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
            int[] fixedIds = compoundModel.itemID;
@@ -504,6 +502,12 @@
        {
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            SetFixedItemIndexDic();
            composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,GetPlayMatEffect(),1);
        }
System/Compose/New/ComposeToolsWin.cs
@@ -343,15 +343,6 @@
        private void UpdateThirdType(int thirdType)
        {
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Item, curSecondType, thirdType, out thirdTypeData);
            if (thirdTypeData != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
                    return;
                }
            }
            curThirdType = thirdType;
            OnClickThirdType();
            CreateTypeCell();
@@ -443,6 +434,13 @@
        {
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            SetFixedItemIndexDic();
            composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict,composeEffect,1);
        }
@@ -486,6 +484,13 @@
        {
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            List<int> composeCountlist = new List<int>();
            fixedItemIndexDict.Clear();
            SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
System/Compose/New/ComposeWingsWin.cs
@@ -332,15 +332,6 @@
        private void UpdateThirdType(int thirdType)
        {
            composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Wings, curSecondType, thirdType, out thirdTypeData);
            if (thirdTypeData != null)
            {
                bool isTrailer = composeWinModel.IsTrailerByLevel(thirdTypeData.itemCompound);
                if (isTrailer)
                {
                    MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", thirdTypeData.itemCompound.levelNeed));
                    return;
                }
            }
            curThirdType = thirdType;
            OnClickThirdType();
            CreateTypeCell();
@@ -595,6 +586,14 @@
        private void OnClickComposeBtn()
        {
            if (compoundModel == null) return;
            bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
            if (isTrailer)
            {
                MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
                return;
            }
            SetFixedMatIndex();
            composeWinModel.SendComposeRequest(compoundModel, fixedItemIndexDict, GetPlayMatEffect(), 1, successRate);
        }