From 4c1eaa407e7d18ecab485b8049beed73617cf5c3 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 21 Jan 2020 07:12:48 +0100 Subject: [PATCH] Keyboard shortcut to show the highscores of the selected song CTRL+H will show the highscores of the selected song. --- Vocaluxe/Screens/CScreenSong.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index cf0e1183..8fc5e986 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -99,6 +99,18 @@ namespace Vocaluxe.Screens private ISongMenu _SongMenu; private CPlaylist _Playlist; + private static int _StaticSelectedSongID; + + private static void setStaticSelectedSongID(int songID) + { + _StaticSelectedSongID = songID; + } + + public static int getSelectedSongID() + { + return _StaticSelectedSongID; + } + public override EMusicType CurrentMusicType { get { return CSongs.IsInCategory ? EMusicType.Preview : EMusicType.Background; } @@ -303,6 +315,14 @@ namespace Vocaluxe.Screens if (keyEvent.Mod == EModifier.Ctrl && CSongs.NumSongsVisible > 0 && !_Sso.Selection.PartyMode) _StartMedleySong(_SongMenu.GetPreviewSongNr()); break; + + case Keys.H: + if (keyEvent.Mod == EModifier.Ctrl && CSongs.NumSongsVisible > 0 && !_Sso.Selection.PartyMode) + { + CScreenSong.setStaticSelectedSongID(_SongMenu.GetPreviewSongNr()); + CBase.Graphics.FadeTo(EScreen.Highscore); + } + break; } if (!_SearchActive) {