zhaoyang 3 жил өмнө
parent
commit
2807d2260c

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachOfItemView.cs

@@ -118,6 +118,8 @@ namespace GFGGame
                     StoryController.ShowLevelView(chapterInt, levelInt);
                     StoryController.ShowLevelView(chapterInt, levelInt);
                     break;
                     break;
                 case ConstFunctionId.FU_ZHUANG_HE_CHENG:
                 case ConstFunctionId.FU_ZHUANG_HE_CHENG:
+
+
                     int suitId = SuitCfgManager.Instance.GetItemSuitId(_itemId);
                     int suitId = SuitCfgManager.Instance.GetItemSuitId(_itemId);
                     if (suitId > 0)
                     if (suitId > 0)
                     {
                     {
@@ -130,6 +132,11 @@ namespace GFGGame
                     ViewManager.Show(ViewName.LUCKY_BOX_VIEW, null, _fromeViewDatas);
                     ViewManager.Show(ViewName.LUCKY_BOX_VIEW, null, _fromeViewDatas);
                     break;
                     break;
                 case ConstFunctionId.TAO_ZHUANG_TU_JIAN:
                 case ConstFunctionId.TAO_ZHUANG_TU_JIAN:
+                    if (ViewManager.isViewOpen(ViewName.SUIT_GUIDE_VIEW))
+                    {
+                        this.Hide();
+                        return;
+                    }
                     this.Hide();
                     this.Hide();
                     ViewManager.Show(ViewName.SUIT_GUIDE_VIEW, null, _fromeViewDatas);
                     ViewManager.Show(ViewName.SUIT_GUIDE_VIEW, null, _fromeViewDatas);
                     break;
                     break;

+ 14 - 0
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -99,6 +99,20 @@ namespace GFGGame
 
 
         }
         }
 
 
+        public static bool isViewOpen(string viewName)
+        {
+            UIView obj = null;
+            if (_viewDic.ContainsKey(viewName))
+            {
+                obj = _viewDic[viewName];
+                if (obj != null)
+                {
+                    IUIView view = (IUIView)obj;
+                    if (view.isShowing) return true;
+                }
+            }
+            return false;
+        }
         public static bool Show<T>(object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
         public static bool Show<T>(object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
         {
         {
             string viewName = typeof(T).FullName;
             string viewName = typeof(T).FullName;