mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Add ability to load Drawings flags from osu/Drawings/Flags.
This commit is contained in:
@ -73,9 +73,9 @@ namespace osu.Game.Screens.Tournament
|
||||
};
|
||||
}
|
||||
|
||||
public void AddTeam(Team team)
|
||||
public void AddTeam(Team team, TextureStore flagStore)
|
||||
{
|
||||
GroupTeam gt = new GroupTeam(team);
|
||||
GroupTeam gt = new GroupTeam(team, flagStore);
|
||||
|
||||
if (TeamsCount < 8)
|
||||
{
|
||||
@ -127,8 +127,12 @@ namespace osu.Game.Screens.Tournament
|
||||
private readonly FillFlowContainer innerContainer;
|
||||
private readonly Sprite flagSprite;
|
||||
|
||||
public GroupTeam(Team team)
|
||||
private readonly TextureStore flagStore;
|
||||
|
||||
public GroupTeam(Team team, TextureStore flagStore)
|
||||
{
|
||||
this.flagStore = flagStore;
|
||||
|
||||
Team = team;
|
||||
|
||||
Width = 36;
|
||||
@ -178,9 +182,9 @@ namespace osu.Game.Screens.Tournament
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore textures)
|
||||
private void load()
|
||||
{
|
||||
flagSprite.Texture = textures.Get($@"Flags/{Team.FlagName}");
|
||||
flagSprite.Texture = flagStore.Get($@"Flags/{Team.FlagName}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user