Add scrolling teams container.

This commit is contained in:
smoogipooo
2017-02-27 15:02:38 +09:00
parent 25a1c7a8ad
commit 5f3e484353
7 changed files with 690 additions and 75 deletions

View File

@ -107,12 +107,29 @@ namespace osu.Game.Screens.Tournament
}
}
public void RemoveTeam(Team team)
public bool RemoveTeam(Team team)
{
if (topTeams.RemoveAll(gt => gt.Team == team) > 0)
{
topTeamsCount--;
return true;
}
else if (bottomTeams.RemoveAll(gt => gt.Team == team) > 0)
{
bottomTeamsCount--;
return true;
}
return false;
}
public void ClearTeams()
{
topTeams.Clear();
bottomTeams.Clear();
topTeamsCount = 0;
bottomTeamsCount = 0;
}
class GroupTeam : FlowContainer