| | |
| | | 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);
|
| | |
| | | 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))
|
| | |
| | | }
|
| | | }
|
| | | break;
|
| | | case ItemWinBtnType.putOff:
|
| | | case ItemOperateType.putOff:
|
| | | {
|
| | | WindowCenter.Instance.Close<GatherSoulTipWin>();
|
| | | GatherSoulItem item;
|
| | |
| | | }
|
| | | }
|
| | | 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>();
|