Esempio n. 1
0
 internal void RemoveSong()
 {
     BeatSaberPlaylistsLib.Types.IPlaylist selectedPlaylist = PlaylistLibUtils.playlistManager.GetAllPlaylists()[annotatedBeatmapLevelCollectionsViewController.selectedItemIndex - 2];
     selectedPlaylist.Remove(selectedPlaylistSong);
     PlaylistLibUtils.playlistManager.StorePlaylist(selectedPlaylist);
     annotatedBeatmapLevelCollectionsViewController.SetData(HarmonyPatches.AnnotatedBeatmapLevelCollectionsViewController_SetData.otherCustomBeatmapLevelCollections, annotatedBeatmapLevelCollectionsViewController.selectedItemIndex, false);
     levelCollectionViewController.SetData(selectedPlaylist.beatmapLevelCollection, selectedPlaylist.collectionName, selectedPlaylist.coverImage, false, null);
 }
        private void SelectAnnotatedBeatmapCollectionByIdx(int index)
        {
            annotatedBeatmapLevelCollectionsViewController.SetData(AnnotatedBeatmapLevelCollectionsViewController_SetData.otherCustomBeatmapLevelCollections, index, false);
            IAnnotatedBeatmapLevelCollection selectedCollection = annotatedBeatmapLevelCollectionsViewController.selectedAnnotatedBeatmapLevelCollection;

            levelCollectionViewController.SetData(selectedCollection.beatmapLevelCollection, selectedCollection.collectionName, selectedCollection.coverImage, false, null);
            levelPackDetailViewController.SetData((IBeatmapLevelPack)selectedCollection);
            didSelectAnnotatedBeatmapLevelCollectionEvent?.Invoke(selectedCollection);
        }