Fixed round-images on ScreenScore.
This commit is contained in:
1 parent
352b0181fa
commit
21ff3962ec
1 file changed
+8
-3
@@ -56,6 +56,7 @@ namespace Vocaluxe.Screens
|
|||||||
private int _Round;
|
private int _Round;
|
||||||
private CPoints _Points;
|
private CPoints _Points;
|
||||||
private Stopwatch _Timer;
|
private Stopwatch _Timer;
|
||||||
|
private bool _SlideShowBGAvailable;
|
||||||
|
|
||||||
public override void Init()
|
public override void Init()
|
||||||
{
|
{
|
||||||
@@ -130,7 +131,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
_SetVisibility();
|
_SetVisibility();
|
||||||
_UpdateRatings();
|
_UpdateRatings();
|
||||||
_UpdateBackground();
|
_SlideShowBGAvailable = _UpdateBackground();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool UpdateGame()
|
public override bool UpdateGame()
|
||||||
@@ -182,7 +183,11 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
public override bool Draw()
|
public override bool Draw()
|
||||||
{
|
{
|
||||||
base.Draw();
|
if (_SlideShowBGAvailable)
|
||||||
|
_SlideShowBG.Draw();
|
||||||
|
else
|
||||||
|
base._DrawBG();
|
||||||
|
base._DrawFG();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -424,7 +429,7 @@ namespace Vocaluxe.Screens
|
|||||||
|
|
||||||
private bool _UpdateBackground()
|
private bool _UpdateBackground()
|
||||||
{
|
{
|
||||||
String[] photos = CVocaluxeServer.getPhotosOfThisRound();
|
string[] photos = CVocaluxeServer.getPhotosOfThisRound();
|
||||||
_SlideShowBG.RemoveSlideShowTextures();
|
_SlideShowBG.RemoveSlideShowTextures();
|
||||||
foreach (string photo in photos)
|
foreach (string photo in photos)
|
||||||
_SlideShowBG.AddSlideShowTexture(photo);
|
_SlideShowBG.AddSlideShowTexture(photo);
|
||||||
|
|||||||
Reference in new issue
Block a user