Exemplo n.º 1
0
 public static void ScrollUp()
 {
     SongSelectionMovement.SongMovementBefore(CurrentSongIndex, CurrentFolderIndex, CurrentLevelIndex, Globals.CardOffset);
     if (SelectedFolderIndex == -1)
     {
         CurrentFolderIndex = CurrentFolderIndex > 0 ? --CurrentFolderIndex : 0;
     }
     else if (FolderParams[SelectedFolderIndex].Type == SortType.Level && SelectedLevelIndex == -1)
     {
         CurrentLevelIndex = CurrentLevelIndex > 0 ? --CurrentLevelIndex : 0;
     }
     else
     {
         CurrentSongIndex = CurrentSongIndex > 0 ? --CurrentSongIndex : 0;
         //UpdateMetaLabels(); // FIXME
     }
     SongSelectionMovement.SongMovementAfter(CurrentSongIndex, CurrentFolderIndex, CurrentLevelIndex);
 }
Exemplo n.º 2
0
 public static void ScrollDown()
 {
     SongSelectionMovement.SongMovementBefore(CurrentSongIndex, CurrentFolderIndex, CurrentLevelIndex, -Globals.CardOffset);
     if (SelectedFolderIndex == -1)
     {
         CurrentFolderIndex = CurrentFolderIndex < (FolderParams.Count - 1) ? ++CurrentFolderIndex : FolderParams.Count - 1;
     }
     else if (FolderParams[SelectedFolderIndex].Type == SortType.Level && SelectedLevelIndex == -1)
     {
         CurrentLevelIndex = CurrentLevelIndex < 9 ? ++CurrentLevelIndex : 9;
     }
     else
     {
         CurrentSongIndex = CurrentSongIndex < (Songlist.Count - 1) ? ++CurrentSongIndex : Songlist.Count - 1;
         //UpdateMetaLabels(); // FIXME
     }
     SongSelectionMovement.SongMovementAfter(CurrentSongIndex, CurrentFolderIndex, CurrentLevelIndex);
 }