From d9a2ea8ce0dd6af803815e3f8dc7a0293aff9f9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20K=C3=BCpper?= Date: Thu, 12 Dec 2013 10:22:40 +0100 Subject: [PATCH] Testing adding round-pictures to ScreenScore. --- Vocaluxe/Screens/CScreenScore.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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();