Added SetPressed to CButton
Fixed video playback at start
This commit is contained in:
1 parent
4a9362958a
commit
817066ee45
3 files changed
+7
-2
No files matched your search
@@ -49,7 +49,8 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
if(CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_ONLY_OWN_MUSIC)
|
if(CConfig.BackgroundMusicSource != EBackgroundMusicSource.TR_CONFIG_ONLY_OWN_MUSIC)
|
||||||
AddBackgroundMusic();
|
AddBackgroundMusic();
|
||||||
ToggleVideo();
|
if (VideoToBackgroundIsEnabled())
|
||||||
|
ApplyBackgroundVideo();
|
||||||
|
|
||||||
_Playing = false;
|
_Playing = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ namespace Vocaluxe.Menu
|
|||||||
public float SReflectionHeight;
|
public float SReflectionHeight;
|
||||||
|
|
||||||
private bool _Selected;
|
private bool _Selected;
|
||||||
|
public bool Pressed;
|
||||||
public bool Selected
|
public bool Selected
|
||||||
{
|
{
|
||||||
get { return _Selected; }
|
get { return _Selected; }
|
||||||
@@ -234,7 +235,8 @@ namespace Vocaluxe.Menu
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
STexture texture = new STexture(-1);
|
STexture texture = new STexture(-1);
|
||||||
if (!Selected)
|
|
||||||
|
if (!Selected && !Pressed)
|
||||||
{
|
{
|
||||||
texture = CTheme.GetSkinTexture(_Theme.TextureName);
|
texture = CTheme.GetSkinTexture(_Theme.TextureName);
|
||||||
CDraw.DrawTexture(texture, Rect, Color);
|
CDraw.DrawTexture(texture, Rect, Color);
|
||||||
|
|||||||
@@ -139,6 +139,8 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
public override bool UpdateGame()
|
public override bool UpdateGame()
|
||||||
{
|
{
|
||||||
|
Buttons[htButtons(ButtonToBackgroundVideo)].Pressed = CBackgroundMusic.VideoToBackgroundIsEnabled();
|
||||||
|
Buttons[htButtons(ButtonShowVideo)].Pressed = CBackgroundMusic.IsVideoEnabled();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user