Quellcode durchsuchen

Fixed Incorrect flowcoordinator type being passed

Eris vor 4 Jahren
Ursprung
Commit
26d396ad1d

+ 3 - 3
SongBrowserPlugin/UI/Browser/BeatSaberUIController.cs

@@ -12,7 +12,7 @@ namespace SongBrowser.DataAccess
     public class BeatSaberUIController
     public class BeatSaberUIController
     {
     {
         // Beat Saber UI Elements
         // Beat Saber UI Elements
-        public FlowCoordinator LevelSelectionFlowCoordinator;
+        public LevelSelectionFlowCoordinator LevelSelectionFlowCoordinator;
         public LevelSelectionNavigationController LevelSelectionNavigationController;
         public LevelSelectionNavigationController LevelSelectionNavigationController;
 
 
         public LevelFilteringNavigationController LevelFilteringNavigationController;
         public LevelFilteringNavigationController LevelFilteringNavigationController;
@@ -52,14 +52,14 @@ namespace SongBrowser.DataAccess
         /// Constructor.  Acquire all necessary BeatSaberUi elements.
         /// Constructor.  Acquire all necessary BeatSaberUi elements.
         /// </summary>
         /// </summary>
         /// <param name="flowCoordinator"></param>
         /// <param name="flowCoordinator"></param>
-        public BeatSaberUIController(FlowCoordinator flowCoordinator)
+        public BeatSaberUIController(LevelSelectionFlowCoordinator flowCoordinator)
         {
         {
             Logger.Debug("Collecting all BeatSaberUI Elements...");
             Logger.Debug("Collecting all BeatSaberUI Elements...");
 
 
             LevelSelectionFlowCoordinator = flowCoordinator;
             LevelSelectionFlowCoordinator = flowCoordinator;
 
 
             // gather flow coordinator elements
             // gather flow coordinator elements
-            LevelSelectionNavigationController = LevelSelectionFlowCoordinator.GetField<LevelSelectionNavigationController, FlowCoordinator>("levelSelectionNavigationController");
+            LevelSelectionNavigationController = LevelSelectionFlowCoordinator.GetField<LevelSelectionNavigationController, LevelSelectionFlowCoordinator>("levelSelectionNavigationController");
             Logger.Debug("Acquired LevelSelectionNavigationController [{0}]", LevelSelectionNavigationController.GetInstanceID());
             Logger.Debug("Acquired LevelSelectionNavigationController [{0}]", LevelSelectionNavigationController.GetInstanceID());
 
 
             LevelFilteringNavigationController = LevelSelectionNavigationController.GetField<LevelFilteringNavigationController, LevelSelectionNavigationController>("_levelFilteringNavigationController");
             LevelFilteringNavigationController = LevelSelectionNavigationController.GetField<LevelFilteringNavigationController, LevelSelectionNavigationController>("_levelFilteringNavigationController");

+ 1 - 1
SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

@@ -101,7 +101,7 @@ namespace SongBrowser.UI
             Logger.Trace("CreateUI()");
             Logger.Trace("CreateUI()");
 
 
             // Determine the flow controller to use
             // Determine the flow controller to use
-            FlowCoordinator flowCoordinator;
+            LevelSelectionFlowCoordinator flowCoordinator;
             if (mode == MainMenuViewController.MenuButton.SoloFreePlay)
             if (mode == MainMenuViewController.MenuButton.SoloFreePlay)
             {
             {
                 Logger.Debug("Entering SOLO mode...");
                 Logger.Debug("Entering SOLO mode...");