/// <summary> /// Get Current levels from current level collection. /// </summary> /// <returns></returns> public IPreviewBeatmapLevel[] GetCurrentLevelCollectionLevels() { var levelCollection = GetCurrentSelectedAnnotatedBeatmapLevelCollection(); if (levelCollection == null) { Logger.Debug("Current selected level collection is null for some reason..."); return(null); } return(SongBrowserModel.GetLevelsForLevelCollection(levelCollection)); }
static void Postfix(ref SongBrowserUI __instance, ref Button ____sortByDisplay, ref SongBrowserModel ____model) { if (____model.Settings.sortMode == SongSortMode.Custom) { ____sortByDisplay.SetButtonText("PP Helper"); } }