Sfoglia il codice sorgente

战斗失败跳转

zhaoyang 2 anni fa
parent
commit
42c94d510c

+ 6 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryFightFailView.cs

@@ -55,6 +55,7 @@ namespace GFGGame
         {
             base.OnHide();
             _cfgs.Clear();
+            if (_ui.m_list.numItems > 0) _ui.m_list.ScrollToView(0);
         }
 
         protected override void RemoveEventListener()
@@ -91,11 +92,14 @@ namespace GFGGame
             {
                 param[i] = cfg.jumpParamArr[i];
             }
-            // ViewManager.Hide<StroyFightResultView>();
+            if (cfg.jumpId != nameof(FirstChargeBonusView))
+            {
 
+                ViewManager.Hide<StroyFightResultView>();
+                Hide();
+            }
             ViewManager.JumpToView(cfg.jumpId, param, null);
             // ViewManager.Show<MainUIView>();
-            //  Hide();
 
         }
     }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StroyFightResultView.cs

@@ -215,8 +215,8 @@ namespace GFGGame
                 if (!this._resultData.Result) ViewManager.Show<StoryFightFailView>();
 
                 InstanceZonesDataManager.isResultFighting = false;
+                _ui.m_btnClose.enabled = true;
             });
-            _ui.m_btnClose.enabled = true;
 
             UpdateToCheckGuide(null);
         }