mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add scrolling teams container.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user