瀏覽代碼

跳转界面 去掉参数resetGobackParams

huangxiaoyue 1 年之前
父節點
當前提交
b071ab8d2a

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachView.cs

@@ -169,7 +169,7 @@ namespace GFGGame
                     //     isJump = false;
                     //     break;
                     // }
-                    isJump = ViewManager.Show<ClothingShopView>(new object[] { shopId, null, _itemId, needCount }, false, true);
+                    isJump = ViewManager.Show<ClothingShopView>(new object[] { shopId, null, _itemId, needCount }, false);
                     break;
                 case ConstFunctionId.FU_ZHUANG_DECOMPOSE:
                     // this.Hide();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -375,7 +375,7 @@ namespace GFGGame
 
         private void OnClickBtnClothingShop()
         {
-            ViewManager.Show<ClothingShopView>(new object[] { null, scoreType }, false, true);
+            ViewManager.Show<ClothingShopView>(new object[] { null, scoreType }, false);
         }
 
         private void OnClickListType1Item(EventContext context)

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -349,7 +349,7 @@ namespace GFGGame
             if (isOpen) return;
             isOpen = true;
             _ui.m_btnZhaiXing.m_holder1.visible = false;
-            ViewManager.Show<LuckyBoxView>(null, false, true);
+            ViewManager.Show<LuckyBoxView>(null, false);
             isOpen = false;
         }
 

+ 6 - 6
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -121,7 +121,7 @@ namespace GFGGame
         /// <param name="viewData">要传递给视图的参数</param>
         /// <param name="goBackParams">从该视图返回的视图信息</param>
         /// <param name="hideOthers">是否关闭其他视图</param>
-        public static bool Show(string fullViewName, object viewData = null, bool hideOthers = false, bool resetGobackParams = false)
+        public static bool Show(string fullViewName, object viewData = null, bool hideOthers = false)
         {
             string name = GetName(fullViewName);
             if (!GameGlobal.skipCheckOpen && !FunctionOpenDataManager.Instance.CheckIsFunOpenById(name))
@@ -205,7 +205,7 @@ namespace GFGGame
             return false;
         }
 
-        public static bool Show<T>(object viewData = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
+        public static bool Show<T>(object viewData = null, bool hideOthers = false) where T : class, new()
         {
             // string[] names = typeof(T).FullName.Split('.');
             // string viewName = names[names.Length - 1];
@@ -435,7 +435,7 @@ namespace GFGGame
                     else
                     {
                         if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(nameof(LeagueView))) return;
-                        ViewManager.Show<LeagueJoinView>(null, hideOther, true);
+                        ViewManager.Show<LeagueJoinView>(null, hideOther);
                     }
 
                     break;
@@ -447,14 +447,14 @@ namespace GFGGame
                     }
                     else
                     {
-                        ViewManager.Show<LeagueJoinView>(null, hideOther, true);
+                        ViewManager.Show<LeagueJoinView>(null, hideOther);
                     }
                     break;
                 case nameof(StoreView):
                     ViewManager.Show<StoreView>(param, hideOther);
                     break;
                 case nameof(StoryChapterListView):
-                    ViewManager.Show($"GFGGame.{jumpId}", param, hideOther, true);
+                    ViewManager.Show($"GFGGame.{jumpId}", param, hideOther);
                     break;
                 case nameof(StoryChapterView):
                     ViewManager.Show<StoryChapterView>(param[0], hideOther);
@@ -472,7 +472,7 @@ namespace GFGGame
                         ViewManager.Show<LuckyBoxView>(null, hideOther);
                     break;
                 default:
-                    ViewManager.Show($"GFGGame.{jumpId}", null, hideOther, true);
+                    ViewManager.Show($"GFGGame.{jumpId}", null, hideOther);
                     break;
             }
             onSuccess?.Invoke();