Ejemplo n.º 1
0
        static void WhiteLabelMainMenuStart(ref WrapCounter ___songsInc, ref List <string> ___songs)
        {
            if (originalMenuSongs == null)
            {
                originalMenuSongs = ___songs;
            }

            ___songs = originalMenuSongs;

            foreach (var song in CustomBeatsPlugin.INSTANCE.songs)
            {
                ___songs.Add(song);
            }

            ___songsInc = new WrapCounter(___songs.Count);
        }
Ejemplo n.º 2
0
        static void WhiteLabelMainMenuLevelSelect(ref WrapCounter ___songsInc, ref List <string> ___songs, BeatmapIndex ___beatmapIndex)
        {
            if (CustomBeatsPlugin.INSTANCE.dirty)
            {
                foreach (var song in CustomBeatsPlugin.INSTANCE.songs)
                {
                    if (!___songs.Contains(song))
                    {
                        ___songs.Add(song);
                    }
                }

                ___songsInc = new WrapCounter(___songs.Count);
                CustomBeatsPlugin.INSTANCE.dirty = false;

                ___beatmapIndex.UpdateCache();
            }
        }