/// <summary> /// Sets the SortStrings of the songpointers to the actual category names /// </summary> private static void _AdjustCategoryNames() { ESongSorting sorting = CSongs.Sorter.SongSorting; switch (sorting) { case ESongSorting.TR_CONFIG_DECADE: foreach (CSongPointer songPointer in CSongs.Sorter.SortedSongs) { string year = songPointer.SortString; if (year != "") { year = year.Substring(0, 3); songPointer.SortString = year + "0 - " + year + "9"; } } break; case ESongSorting.TR_CONFIG_TITLE_LETTER: case ESongSorting.TR_CONFIG_ARTIST_LETTER: foreach (CSongPointer songPointer in CSongs.Sorter.SortedSongs) { songPointer.SortString = (songPointer.SortString.Length == 0 || !Char.IsLetter(songPointer.SortString, 0)) ? "#" : songPointer.SortString[0].ToString(); } break; case ESongSorting.TR_CONFIG_DATEADDED: foreach (CSongPointer songPointer in CSongs.Sorter.SortedSongs) { songPointer.SortString = CSongs.GetSong(songPointer.SongID).DateAdded.ToString("dd/MM/yyyy"); } break; } }
public static void StopPreview() { if (!IsPlayingPreview) { return; } Stop(); _CurPlayer = _BGPlayer; if (_MusicSource != EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC) { _CurPlayer.Load(CSongs.GetSong(_PreviewPlayer.SongID)); _CurPlayer.Position = _PreviewPlayer.Position; } CSound.SetGlobalVolume(CConfig.BackgroundMusicVolume); }
public static void SetNormalGameMode() { CSongs.ResetPartySongSung(); CurrentPartyModeID = -1; }
public void PrevCategory() { CSongs.PrevCategory(); }
public void NextCategory() { CSongs.NextCategory(); }
public void SortSongs(ESongSorting sorting, EOffOn tabs, EOffOn ignoreArticles, String searchString, EDuetOptions duetOptions, int playlistID) { CSongs.Sort(sorting, tabs, ignoreArticles, searchString, duetOptions, playlistID); }
public void ResetSongSung(int catIndex) { CSongs.ResetPartySongSung(catIndex); }
public void ResetSongSung() { CSongs.ResetPartySongSung(); }
public void AddPartySongSung(int songID) { CSongs.AddPartySongSung(songID); }
public CCategory GetCategory(int index) { return(CSongs.GetCategoryByIndex(index)); }
public CSong GetSongByID(int songID) { return(CSongs.GetSong(songID)); }
public CSong GetVisibleSong(int visibleIndex) { return(CSongs.GetVisibleSongByIndex(visibleIndex)); }
public void UpdateRandomSongList() { CSongs.UpdateRandomSongList(); }
public int GetNumSongsNotSungInCategory(int categoryIndex) { return(CSongs.GetNumSongsNotSungInCategory(categoryIndex)); }