Info text for CTRL+S if Medley is not possible

"No Medley for this song!" will be displayed at middle top screen border.
This commit is contained in:
Stefan authored and GitHub committed 2020-02-11 12:07:41 +01:00
1 parent a103fc4cf5
commit f408cafca8
1 file changed
+9 -1
+9 -1
View File
@@ -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();