Testing adding round-pictures to ScreenScore.

This commit is contained in:
Florian Küpper committed 2013-12-19 08:54:25 +01:00
1 parent a38ae0d699
commit d9a2ea8ce0
1 file changed
+15
+15
View File
@@ -20,6 +20,7 @@ using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Windows.Forms; using System.Windows.Forms;
using Vocaluxe.Base; using Vocaluxe.Base;
using Vocaluxe.Base.Server;
using VocaluxeLib; using VocaluxeLib;
using VocaluxeLib.Game; using VocaluxeLib.Game;
using VocaluxeLib.Menu; using VocaluxeLib.Menu;
@@ -42,6 +43,8 @@ namespace Vocaluxe.Screens
private const string _ScreenSettingShortDifficulty = "ScreenSettingShortDifficulty"; private const string _ScreenSettingShortDifficulty = "ScreenSettingShortDifficulty";
private const string _ScreenSettingAnimationDirection = "ScreenSettingAnimationDirection"; private const string _ScreenSettingAnimationDirection = "ScreenSettingAnimationDirection";
private CBackground _SlideShowBG;
private string[,] _TextNames; private string[,] _TextNames;
private string[,] _TextScores; private string[,] _TextScores;
private string[,] _TextRatings; private string[,] _TextRatings;
@@ -72,6 +75,8 @@ namespace Vocaluxe.Screens
_ThemeScreenSettings = new string[] {_ScreenSettingShortScore, _ScreenSettingShortRating, _ScreenSettingShortDifficulty, _ScreenSettingAnimationDirection}; _ThemeScreenSettings = new string[] {_ScreenSettingShortScore, _ScreenSettingShortRating, _ScreenSettingShortDifficulty, _ScreenSettingAnimationDirection};
_StaticPointsBarDrawnPoints = new double[CSettings.MaxNumPlayer]; _StaticPointsBarDrawnPoints = new double[CSettings.MaxNumPlayer];
_SlideShowBG = GetNewBackground();
} }
public override bool HandleInput(SKeyEvent keyEvent) public override bool HandleInput(SKeyEvent keyEvent)
@@ -125,6 +130,7 @@ namespace Vocaluxe.Screens
_SetVisibility(); _SetVisibility();
_UpdateRatings(); _UpdateRatings();
_UpdateBackground();
} }
public override bool UpdateGame() 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() private void _LeaveScreen()
{ {
CParty.LeavingScore(); CParty.LeavingScore();