Added SetPressed to CButton

Fixed video playback at start
This commit is contained in:
Stephan Sundermann committed 2012-03-07 14:05:23 +01:00
1 parent 4a9362958a
commit 817066ee45
3 files changed
+7 -2

No files matched your search

+2 -1
View File
@@ -49,7 +49,8 @@ namespace Vocaluxe.Base
if(CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_ONLY_OWN_MUSIC)
AddBackgroundMusic();
ToggleVideo();
if (VideoToBackgroundIsEnabled())
ApplyBackgroundVideo();
_Playing = false;
}
+3 -1
View File
@@ -41,6 +41,7 @@ namespace Vocaluxe.Menu
public float SReflectionHeight;
private bool _Selected;
public bool Pressed;
public bool Selected
{
get { return _Selected; }
@@ -234,7 +235,8 @@ namespace Vocaluxe.Menu
return;
STexture texture = new STexture(-1);
if (!Selected)
if (!Selected && !Pressed)
{
texture = CTheme.GetSkinTexture(_Theme.TextureName);
CDraw.DrawTexture(texture, Rect, Color);
@@ -139,6 +139,8 @@ namespace Vocaluxe.Screens
public override bool UpdateGame()
{
Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = CBackgroundMusic.VideoToBackgroundIsEnabled();
Buttons[htButtons(ButtonShowVideo)].Pressed = CBackgroundMusic.IsVideoEnabled();
return true;
}