4769 【前端】【1.3】合成功能预告支持子项一个都未开启时预告,可选中预告中的未开启的合成子按钮
| | |
| | | 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();
|
| | |
| | |
|
| | | 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);
|
| | | }
|
| | |
|
| | |
| | | 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();
|
| | |
| | |
|
| | | 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);
|
| | | }
|
| | |
|
| | |
| | | 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();
|
| | | }
|
| | |
| | | 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;
|
| | |
| | | {
|
| | | 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);
|
| | | }
|
| | |
| | | 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();
|
| | |
| | | {
|
| | | 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);
|
| | | }
|
| | |
| | | {
|
| | | 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);
|
| | |
| | | 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();
|
| | |
| | |
|
| | | 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);
|
| | | }
|