From f408cafca81e6ba17f9ff11bea4b295d0f0b808f Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 11 Feb 2020 12:07:41 +0100 Subject: [PATCH] Info text for CTRL+S if Medley is not possible "No Medley for this song!" will be displayed at middle top screen border. --- Vocaluxe/Screens/CScreenSong.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Screens/CScreenSong.cs b/Vocaluxe/Screens/CScreenSong.cs index 33130398..49f09f16 100644 --- a/Vocaluxe/Screens/CScreenSong.cs +++ b/Vocaluxe/Screens/CScreenSong.cs @@ -963,7 +963,12 @@ namespace Vocaluxe.Screens _SongMenu.Update(_Sso); _SongMenu.OnShow(); - _Texts[_TextShortInfoTop].Text = CBase.Language.Translate("TR_SCREENSONG_SORTING").Replace("%s", CBase.Language.Translate(_Sso.Sorting.SongSorting.ToString())); + _ShowInfoText(CBase.Language.Translate("TR_SCREENSONG_SORTING").Replace("%s", CBase.Language.Translate(_Sso.Sorting.SongSorting.ToString()))); + } + + private void _ShowInfoText(String text) + { + _Texts[_TextShortInfoTop].Text = text; _Statics[_StaticShortInfoTop].Visible = true; _Texts[_TextShortInfoTop].Visible = true; _TimerShortInfoText.Stop(); @@ -1035,7 +1040,10 @@ namespace Vocaluxe.Screens if (CSongs.IsInCategory && (songNr >= 0)) { if (!CSongs.VisibleSongs[songNr].IsGameModeAvailable(EGameMode.TR_GAMEMODE_MEDLEY)) + { + _ShowInfoText(CBase.Language.Translate("TR_SCREENSONG_NOMEDLEY")); return; + } CGame.Reset(); CGame.ClearSongs();