Beispiel #1
0
 private static void Postfix(SongSelect __instance, ref bool extras, ref Il2CppSystem.Collections.Generic.List <string> __result)
 {
     FilterPanel.ApplyFilter(__instance, ref extras, ref __result);
     if (SongBrowser.deletedSongs.Count > 0)
     {
         foreach (var deletedSong in SongBrowser.deletedSongs)
         {
             __result.Remove(deletedSong);
         }
     }
 }
Beispiel #2
0
 private static void Postfix(SongSelect __instance, ref bool extras, ref Il2CppSystem.Collections.Generic.List <string> __result)
 {
     if (FilterPanel.filteringFavorites)
     {
         extras = true;
         if (FilterPanel.favorites != null)
         {
             __result.Clear();
             for (int i = 0; i < FilterPanel.favorites.songIDs.Count; i++)
             {
                 __result.Add(FilterPanel.favorites.songIDs[i]);
             }
         }
         __instance.scroller.SnapTo(0, true);
     }
     if (SongBrowser.deletedSongs.Count > 0)
     {
         foreach (var deletedSong in SongBrowser.deletedSongs)
         {
             __result.Remove(deletedSong);
         }
     }
 }