mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 04:03:20 +08:00
Merge pull request #22744 from EXtremeExploit/groups-badges-list
Add group badges to list view
This commit is contained in:
commit
d95bcb10cc
@ -67,6 +67,7 @@ namespace osu.Game.Users
|
||||
{
|
||||
username.Anchor = Anchor.CentreLeft;
|
||||
username.Origin = Anchor.CentreLeft;
|
||||
username.UseFullGlyphHeight = false;
|
||||
})
|
||||
}
|
||||
},
|
||||
@ -95,13 +96,23 @@ namespace osu.Game.Users
|
||||
}
|
||||
};
|
||||
|
||||
if (User.Groups != null)
|
||||
{
|
||||
details.Add(new GroupBadgeFlow
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
User = { Value = User }
|
||||
});
|
||||
}
|
||||
|
||||
if (User.IsSupporter)
|
||||
{
|
||||
details.Add(new SupporterIcon
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
Height = 20,
|
||||
Height = 16,
|
||||
SupportLevel = User.SupportLevel
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user