Kaynağa Gözat

Fix OneSaber Mode.
Version bump.

Stephen Damm 6 yıl önce
ebeveyn
işleme
57b861a947

+ 1 - 1
SongBrowserPlugin/Plugin.cs

@@ -13,7 +13,7 @@ namespace SongBrowserPlugin
 
 		public string Version
 		{
-			get { return "v2.2.1"; }
+			get { return "v2.2.2"; }
 		}
 		
 		public void OnApplicationStart()

+ 7 - 2
SongBrowserPlugin/SongBrowserApplication.cs

@@ -137,7 +137,8 @@ namespace SongBrowserPlugin
         /// <param name="arg2"></param>
         private void HandleSoloModeSelectionViewControllerDidSelectMode(SoloModeSelectionViewController arg1, SoloModeSelectionViewController.SubMenuType arg2)
         {
-            _log.Trace("HandleSoloModeSelectionViewControllerDidSelectMode()");
+            _log.Trace("HandleSoloModeSelectionViewControllerDidSelectMode() - GameplayMode={0}", arg2);
+            this._songBrowserUI.UpdateSongList();
             this._songBrowserUI.RefreshSongList();
         }
 
@@ -170,7 +171,11 @@ namespace SongBrowserPlugin
                 InvokeBeatSaberButton("SoloButton");
             }
 
-            if (Input.GetKeyDown(KeyCode.X))
+            if (Input.GetKey(KeyCode.LeftShift) && Input.GetKeyDown(KeyCode.X))
+            {
+                InvokeBeatSaberButton("OneSaberButton");
+            }
+            else if (Input.GetKeyDown(KeyCode.X))
             {
                 InvokeBeatSaberButton("StandardButton");
             }

+ 10 - 2
SongBrowserPlugin/SongBrowserModel.cs

@@ -227,7 +227,13 @@ namespace SongBrowserPlugin
                 ["Level1"] = 4,
                 ["Level3"] = 3,
                 ["Level8"] = 2,
-                ["Level11"] = 1
+                ["Level11"] = 1,
+
+                ["Level4OneSaber"] = 12,
+                ["Level1OneSaber"] = 11,
+                ["Level2OneSaber"] = 10,
+                ["Level9OneSaber"] = 9,
+                ["Level7OneSaber"] = 8,
             };
         }
 
@@ -295,7 +301,7 @@ namespace SongBrowserPlugin
                     _levelIdToCustomLevel.Add(level.levelID, level);
             }
 
-            _log.Debug("Song Browser knows about {0} songs from SongLoader...", _sortedSongs.Count);
+            _log.Debug("Song Browser knows about {0} songs from SongLoader...", _originalSongs.Count);
         }
 
         /// <summary>
@@ -557,6 +563,8 @@ namespace SongBrowserPlugin
 
             stopwatch.Stop();
             _log.Info("Sorting songs took {0}ms", stopwatch.ElapsedMilliseconds);
+
+            //_sortedSongs.ForEach(x => _log.Debug(x.levelID));
         }    
         
         private void FilterFavorites(List<StandardLevelSO> levels)