From 77561bb15f0a5d45146fdf454726393e3987cc23 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 19 二月 2019 23:25:32 +0800
Subject: [PATCH] 3335 物品管理相关功能重构。
---
System/GatheringSoul/GatherSoulHoleBehaviour.cs | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/System/GatheringSoul/GatherSoulHoleBehaviour.cs b/System/GatheringSoul/GatherSoulHoleBehaviour.cs
index 0ba1819..8e660c5 100644
--- a/System/GatheringSoul/GatherSoulHoleBehaviour.cs
+++ b/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>();
--
Gitblit v1.8.0