1
0
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:
Dean Herbert 2023-03-09 15:45:46 +09:00 committed by GitHub
commit d95bcb10cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
});
}