mirror of
https://github.com/ppy/osu
synced 2025-01-02 20:32:10 +00:00
Badge -> Team
This commit is contained in:
parent
56868e3c06
commit
7572947214
@ -3,7 +3,10 @@
|
||||
|
||||
using System.Collections.Generic;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Primitives;
|
||||
using osu.Game.Modes;
|
||||
|
@ -12,6 +12,7 @@ using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
using osu.Game.Modes;
|
||||
using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics.Colour;
|
||||
using osu.Game.Modes.Mods;
|
||||
using osu.Game.Users;
|
||||
|
||||
|
@ -7,16 +7,16 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Users
|
||||
{
|
||||
public class Badge : IHasDrawableRepresentation<Sprite>
|
||||
public class Team : IHasDrawableRepresentation<Sprite>
|
||||
{
|
||||
public string Name;
|
||||
public Texture Texture; // TODO: Replace this with something better
|
||||
public Texture Flag; // TODO: Replace this with something better
|
||||
|
||||
public Sprite CreateDrawable()
|
||||
{
|
||||
return new Sprite
|
||||
{
|
||||
Texture = Texture,
|
||||
Texture = Flag,
|
||||
};
|
||||
}
|
||||
}
|
@ -10,6 +10,6 @@ namespace osu.Game.Users
|
||||
public int Id;
|
||||
public string Username;
|
||||
public Region Region;
|
||||
public IEnumerable<Badge> Badges;
|
||||
public Team Team;
|
||||
}
|
||||
}
|
||||
|
@ -330,7 +330,7 @@
|
||||
<Compile Include="Screens\Select\Leaderboards\LeaderboardScore.cs" />
|
||||
<Compile Include="Graphics\UserInterface\IHasDrawableRepresentation.cs" />
|
||||
<Compile Include="Users\Region.cs" />
|
||||
<Compile Include="Users\Badge.cs" />
|
||||
<Compile Include="Users\Team.cs" />
|
||||
<Compile Include="Modes\ScoreRank.cs" />
|
||||
<Compile Include="Users\Avatar.cs" />
|
||||
<Compile Include="Screens\Select\Leaderboards\DrawableRank.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user