Auto-focus to NextRound-Button in challenge-main & fix to avoid crash.
This commit is contained in:
1 parent
c5e15aa699
commit
3992f19118
1 file changed
+14
@@ -205,6 +205,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
Buttons[htButtons(ButtonExit)].Visible = true;
|
Buttons[htButtons(ButtonExit)].Visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetInteractionToButton(Buttons[htButtons(ButtonNextRound)]);
|
||||||
|
|
||||||
ShowPopup(false);
|
ShowPopup(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,6 +247,7 @@ namespace Vocaluxe.PartyModes
|
|||||||
Buttons[htButtons(ButtonPopupYes)].Visible = ExitPopupVisible;
|
Buttons[htButtons(ButtonPopupYes)].Visible = ExitPopupVisible;
|
||||||
Buttons[htButtons(ButtonPopupNo)].Visible = ExitPopupVisible;
|
Buttons[htButtons(ButtonPopupNo)].Visible = ExitPopupVisible;
|
||||||
|
|
||||||
|
if (ExitPopupVisible)
|
||||||
SetInteractionToButton(Buttons[htButtons(ButtonPopupNo)]);
|
SetInteractionToButton(Buttons[htButtons(ButtonPopupNo)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,6 +284,8 @@ namespace Vocaluxe.PartyModes
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void UpdateNextPlayerContents()
|
private void UpdateNextPlayerContents()
|
||||||
|
{
|
||||||
|
if (GameState.CurrentRoundNr <= GameState.Combs.Count)
|
||||||
{
|
{
|
||||||
SProfile[] profiles = _Base.Profiles.GetProfiles();
|
SProfile[] profiles = _Base.Profiles.GetProfiles();
|
||||||
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
@@ -291,6 +296,15 @@ namespace Vocaluxe.PartyModes
|
|||||||
NextPlayerTexts[i].Color = _Base.Theme.GetPlayerColor((i + 1));
|
NextPlayerTexts[i].Color = _Base.Theme.GetPlayerColor((i + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (int i = 0; i < GameState.NumPlayerAtOnce; i++)
|
||||||
|
{
|
||||||
|
NextPlayerStatics[i].Visible = false;
|
||||||
|
NextPlayerTexts[i].Visible = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void BuildTable()
|
private void BuildTable()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user