| | |
| | |
|
| | | private void DefaultSelect()
|
| | | {
|
| | | bool isJumpTo = false;
|
| | | if (composeWinModel.secondType != 0)
|
| | | {
|
| | | isJumpTo = true;
|
| | | curSecondType = composeWinModel.secondType;
|
| | | curThirdType = composeWinModel.thirdType;
|
| | | composeWinModel.ResetJumpToModel();
|
| | | }
|
| | |
|
| | | composeWinModel.TryGetThirdTypeData((int)ComposeFuncType.Equip, curSecondType, curThirdType, out thirdTypeData);
|
| | | if (thirdTypeData != null)
|
| | | if(composeWinModel.CurComposeModel == null)
|
| | | {
|
| | | RefreshUI(thirdTypeData.itemCompound);
|
| | | if (isJumpTo)
|
| | | {
|
| | | isJumpTo = false;
|
| | | if (!composeWinModel.IsEnoughFixedMat(thirdTypeData.itemCompound) || !composeWinModel.IsEnoughUnfixedMat(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | }
|
| | | else if (!composeWinModel.IsEnoughMoney(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1011"));
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | RefreshUI(null);
|
| | | curComposeEquipIndex = -1;
|
| | | }
|
| | | }
|
| | |
|