From 643e68ee1a2b3735ad2d5ab3d62a50ccc518856f Mon Sep 17 00:00:00 2001 From: Florian Kuepper Date: Mon, 24 Dec 2012 01:54:14 +0100 Subject: [PATCH] Scroll automatically to even played round. --- PartyModeChallenge/PartyScreenChallengeMain.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PartyModeChallenge/PartyScreenChallengeMain.cs b/PartyModeChallenge/PartyScreenChallengeMain.cs index e701186e..1a1ccb00 100644 --- a/PartyModeChallenge/PartyScreenChallengeMain.cs +++ b/PartyModeChallenge/PartyScreenChallengeMain.cs @@ -244,6 +244,8 @@ namespace Vocaluxe.PartyModes UpdateNextPlayerContents(); if (GameState.CurrentRoundNr == 1) BuildRoundsTable(); + else + ScrollRoundsTable(GameState.CurrentRoundNr - 2); UpdateRoundsTable(); if (GameState.CurrentRoundNr == 1) @@ -464,7 +466,7 @@ namespace Vocaluxe.PartyModes RoundsTable[i].Number.Text = (i + 1 + RoundsTableOffset).ToString() + ")"; int pID = GameState.ProfileIDs[GameState.Combs[i + RoundsTableOffset].Player[p]]; RoundsTable[i].TextPlayer[p].Text = profile[pID].PlayerName; - if ((GameState.CurrentRoundNr - 1) > i) + if ((GameState.CurrentRoundNr - 1) > i + RoundsTableOffset) RoundsTable[i].TextScores[p].Text = GameState.Results[i + RoundsTableOffset, p].ToString(); else RoundsTable[i].TextScores[p].Text = "";