allow using guest profiles only once,
bugfix: update table rows visibility in main screen
This commit is contained in:
1 parent
ffd413165d
commit
e116f4cfb3
2 files changed
+13
-4
No files matched your search
@@ -355,10 +355,10 @@ namespace Vocaluxe.PartyModes
|
||||
|
||||
for (int i = 0; i < Table.Count; i++)
|
||||
{
|
||||
TableRow row = Table[i];
|
||||
|
||||
if (i < GameState.ResultTable.Count)
|
||||
{
|
||||
TableRow row = Table[i];
|
||||
|
||||
row.Pos.Visible = true;
|
||||
row.Name.Visible = true;
|
||||
row.Rounds.Visible = true;
|
||||
@@ -372,6 +372,15 @@ namespace Vocaluxe.PartyModes
|
||||
row.SingPoints.Text = GameState.ResultTable[i].SumSingPoints.ToString();
|
||||
row.GamePoints.Text = GameState.ResultTable[i].NumGamePoints.ToString();
|
||||
}
|
||||
else
|
||||
{
|
||||
row.Pos.Visible = false;
|
||||
row.Name.Visible = false;
|
||||
row.Rounds.Visible = false;
|
||||
row.Won.Visible = false;
|
||||
row.SingPoints.Visible = false;
|
||||
row.GamePoints.Visible = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,8 +402,8 @@ namespace Vocaluxe.PartyModes
|
||||
|
||||
for (int p = 0; p < Data.ScreenNames.ProfileIDs.Count; p++)
|
||||
{
|
||||
//Don't show profile if is selected, but if selected and guest
|
||||
if (Data.ScreenNames.ProfileIDs[p] == i && _Base.Profiles.GetProfiles()[i].GuestProfile == EOffOn.TR_CONFIG_OFF)
|
||||
//Don't show profile if is selected
|
||||
if (Data.ScreenNames.ProfileIDs[p] == i)
|
||||
{
|
||||
visible = false;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user