Explorar el Código

Fix fast scroll off by 1 error in Custom Levels pack.
Fix fast scroll button position, the normal scroll button hitbox is HUGE.

Halsafar hace 4 años
padre
commit
7f5ef22180
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      SongBrowserPlugin/UI/Browser/SongBrowserUI.cs

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

@@ -360,7 +360,7 @@ namespace SongBrowser.UI
             Logger.Debug("Creating fast scroll button...");
             _pageUpFastButton = BeatSaberUI.CreateIconButton("PageUpFast",
                 _beatUi.LevelCollectionNavigationController.transform as RectTransform, "PracticeButton",
-                new Vector2(0.75f, 24f),
+                new Vector2(1f, 24f),
                 new Vector2(10f, 10f),
                 delegate ()
                 {
@@ -371,7 +371,7 @@ namespace SongBrowser.UI
 
             _pageDownFastButton = BeatSaberUI.CreateIconButton("PageDownFast",
                 _beatUi.LevelCollectionNavigationController.transform as RectTransform, "PracticeButton",
-                new Vector2(0.75f, -24f),
+                new Vector2(1f, -24f),
                 new Vector2(10f, 10f),
                 delegate ()
                 {
@@ -1056,7 +1056,7 @@ namespace SongBrowser.UI
             }
 
             Logger.Debug("jumpDirection: {0}, newRow: {1}", jumpDirection, newRow);
-            _beatUi.SelectAndScrollToLevel(levels[newRow].levelID);
+            _beatUi.ScrollToLevelByRow(newRow);
             RefreshQuickScrollButtons();
         }