diff --git a/Vocaluxe/Screens/CScreenScore.cs b/Vocaluxe/Screens/CScreenScore.cs index 22cd465d..1d4f6442 100644 --- a/Vocaluxe/Screens/CScreenScore.cs +++ b/Vocaluxe/Screens/CScreenScore.cs @@ -20,6 +20,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Windows.Forms; using Vocaluxe.Base; +using Vocaluxe.Base.Server; using VocaluxeLib; using VocaluxeLib.Game; using VocaluxeLib.Menu; @@ -42,6 +43,8 @@ namespace Vocaluxe.Screens private const string _ScreenSettingShortDifficulty = "ScreenSettingShortDifficulty"; private const string _ScreenSettingAnimationDirection = "ScreenSettingAnimationDirection"; + private CBackground _SlideShowBG; + private string[,] _TextNames; private string[,] _TextScores; private string[,] _TextRatings; @@ -72,6 +75,8 @@ namespace Vocaluxe.Screens _ThemeScreenSettings = new string[] {_ScreenSettingShortScore, _ScreenSettingShortRating, _ScreenSettingShortDifficulty, _ScreenSettingAnimationDirection}; _StaticPointsBarDrawnPoints = new double[CSettings.MaxNumPlayer]; + + _SlideShowBG = GetNewBackground(); } public override bool HandleInput(SKeyEvent keyEvent) @@ -125,6 +130,7 @@ namespace Vocaluxe.Screens _SetVisibility(); _UpdateRatings(); + _UpdateBackground(); } public override bool UpdateGame() @@ -416,6 +422,15 @@ namespace Vocaluxe.Screens } } + private bool _UpdateBackground() + { + String[] photos = CVocaluxeServer.getPhotosOfThisRound(); + _SlideShowBG.RemoveSlideShowTextures(); + foreach (string photo in photos) + _SlideShowBG.AddSlideShowTexture(photo); + return photos.Length > 0; + } + private void _LeaveScreen() { CParty.LeavingScore();