Scroll automatically to even played round.
This commit is contained in:
1 parent
259876405c
commit
643e68ee1a
1 file changed
+3
-1
@@ -244,6 +244,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
UpdateNextPlayerContents();
|
UpdateNextPlayerContents();
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
BuildRoundsTable();
|
BuildRoundsTable();
|
||||||
|
else
|
||||||
|
ScrollRoundsTable(GameState.CurrentRoundNr - 2);
|
||||||
UpdateRoundsTable();
|
UpdateRoundsTable();
|
||||||
|
|
||||||
if (GameState.CurrentRoundNr == 1)
|
if (GameState.CurrentRoundNr == 1)
|
||||||
@@ -464,7 +466,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
RoundsTable[i].Number.Text = (i + 1 + RoundsTableOffset).ToString() + ")";
|
RoundsTable[i].Number.Text = (i + 1 + RoundsTableOffset).ToString() + ")";
|
||||||
int pID = GameState.ProfileIDs[GameState.Combs[i + RoundsTableOffset].Player[p]];
|
int pID = GameState.ProfileIDs[GameState.Combs[i + RoundsTableOffset].Player[p]];
|
||||||
RoundsTable[i].TextPlayer[p].Text = profile[pID].PlayerName;
|
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();
|
RoundsTable[i].TextScores[p].Text = GameState.Results[i + RoundsTableOffset, p].ToString();
|
||||||
else
|
else
|
||||||
RoundsTable[i].TextScores[p].Text = "";
|
RoundsTable[i].TextScores[p].Text = "";
|
||||||
|
|||||||
Reference in new issue
Block a user