private void ApplyQuickFilterPressed(QuickFilter quickFilter) { FilterList.ApplyQuickFilter(quickFilter); IPreviewBeatmapLevel[] unfilteredLevels = null; if (_lastPack == null) { _lastPack = LevelSelectionNavigationController.GetPrivateField <IBeatmapLevelPack>("_levelPack"); } if (_lastPack == null) { unfilteredLevels = _levelCollectionTableView.GetPrivateField <IPreviewBeatmapLevel[]>("_previewBeatmapLevels"); } else { unfilteredLevels = _lastPack.beatmapLevelCollection.beatmapLevels; } if (unfilteredLevels == null) { Logger.log.Warn("Unable to apply quick filter (could not find songs to filter)"); return; } _filteredLevelPack.SetupFromUnfilteredLevels(unfilteredLevels); LevelSelectionNavigationController.SetData( _filteredLevelPack, true, LevelSelectionNavigationController.GetPrivateField <bool>("_showPlayerStatsInDetailView"), LevelSelectionNavigationController.GetPrivateField <bool>("_showPracticeButtonInDetailView")); ButtonPanel.instance.SetFilterStatus(true); }
private void ApplyQuickFilter(QuickFilter quickFilter) { FilterList.ApplyQuickFilter(quickFilter); ApplyFilters(); }