mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Let's not use Country for drawings-specific stuff...
This commit is contained in:
@ -15,16 +15,16 @@ using osu.Framework.Graphics.Transforms;
|
||||
using osu.Framework.Threading;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Game.Users;
|
||||
using osu.Game.Screens.Tournament.Teams;
|
||||
|
||||
namespace osu.Game.Screens.Tournament
|
||||
{
|
||||
public class ScrollingTeamContainer : Container
|
||||
{
|
||||
public event Action OnScrollStarted;
|
||||
public event Action<Country> OnSelected;
|
||||
public event Action<Team> OnSelected;
|
||||
|
||||
private readonly List<Country> availableTeams = new List<Country>();
|
||||
private readonly List<Team> availableTeams = new List<Team>();
|
||||
|
||||
private readonly Container tracker;
|
||||
|
||||
@ -158,7 +158,7 @@ namespace osu.Game.Screens.Tournament
|
||||
}
|
||||
}
|
||||
|
||||
public void AddTeam(Country team)
|
||||
public void AddTeam(Team team)
|
||||
{
|
||||
if (availableTeams.Contains(team))
|
||||
return;
|
||||
@ -169,12 +169,12 @@ namespace osu.Game.Screens.Tournament
|
||||
scrollState = ScrollState.Idle;
|
||||
}
|
||||
|
||||
public void AddTeams(IEnumerable<Country> teams)
|
||||
public void AddTeams(IEnumerable<Team> teams)
|
||||
{
|
||||
if (teams == null)
|
||||
return;
|
||||
|
||||
foreach (Country t in teams)
|
||||
foreach (Team t in teams)
|
||||
AddTeam(t);
|
||||
}
|
||||
|
||||
@ -185,7 +185,7 @@ namespace osu.Game.Screens.Tournament
|
||||
scrollState = ScrollState.Idle;
|
||||
}
|
||||
|
||||
public void RemoveTeam(Country team)
|
||||
public void RemoveTeam(Team team)
|
||||
{
|
||||
availableTeams.Remove(team);
|
||||
|
||||
@ -270,7 +270,7 @@ namespace osu.Game.Screens.Tournament
|
||||
|
||||
private void addFlags()
|
||||
{
|
||||
foreach (Country t in availableTeams)
|
||||
foreach (Team t in availableTeams)
|
||||
{
|
||||
Add(new ScrollingTeam(t)
|
||||
{
|
||||
@ -320,7 +320,7 @@ namespace osu.Game.Screens.Tournament
|
||||
public const float WIDTH = 58;
|
||||
public const float HEIGHT = 41;
|
||||
|
||||
public Country Team;
|
||||
public Team Team;
|
||||
|
||||
private readonly Sprite flagSprite;
|
||||
private readonly Box outline;
|
||||
@ -340,7 +340,7 @@ namespace osu.Game.Screens.Tournament
|
||||
}
|
||||
}
|
||||
|
||||
public ScrollingTeam(Country team)
|
||||
public ScrollingTeam(Team team)
|
||||
{
|
||||
Team = team;
|
||||
|
||||
|
Reference in New Issue
Block a user