Hide sing button in load screen

Hide sing button if backgroundmusic is played
This commit is contained in:
Stephan Sundermann committed 2012-05-02 15:00:54 +02:00
1 parent dbb4b23db0
commit a2bf447c70
3 files changed
+24

No files matched your search

+19
View File
@@ -33,6 +33,7 @@ namespace Vocaluxe.Base
private static bool _BackgroundMusicAdded;
private static bool _Playing;
private static bool _Disabled;
private static bool _CanSing;
public static bool VideoEnabled
{
@@ -54,6 +55,19 @@ namespace Vocaluxe.Base
}
}
public static bool CanSing
{
get
{
return _CanSing;
}
set
{
_CanSing = value;
}
}
public static bool Disabled
{
get
@@ -156,6 +170,11 @@ namespace Vocaluxe.Base
}
else
Next();
if (!IsBackgroundFile(_CurrentPlaylistElement))
_CanSing = true;
else
_CanSing = false;
}
}
}
@@ -46,6 +46,7 @@ namespace Vocaluxe.Screens
CBackgroundMusic.VideoEnabled = true;
}
}
private bool VideoBackground
{
get
@@ -185,6 +186,7 @@ namespace Vocaluxe.Screens
Statics[htStatics(StaticCover)].Visible = !_VideoPreview || !CBackgroundMusic.SongHasVideo;
Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = VideoBackground;
Buttons[htButtons(ButtonShowVideo)].Pressed = _VideoPreview;
Buttons[htButtons(ButtonSing)].Visible = CBackgroundMusic.CanSing;
return true;
}
+3
View File
@@ -179,6 +179,7 @@ namespace Vocaluxe.Screens
//if (!CBackgroundMusic.Playing)
// CBackgroundMusic.Next();
}
CBackgroundMusic.CanSing = false;
return true;
}
@@ -207,6 +208,8 @@ namespace Vocaluxe.Screens
_Intros[i].Close();
}
CBackgroundMusic.CanSing = true;
CLog.StopBenchmark(3, "Load Cover");
}