mirror of
https://github.com/osukey/osukey.git
synced 2025-05-19 04:27:35 +09: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.Anchor = Anchor.CentreLeft;
|
||||||
username.Origin = 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)
|
if (User.IsSupporter)
|
||||||
{
|
{
|
||||||
details.Add(new SupporterIcon
|
details.Add(new SupporterIcon
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.CentreLeft,
|
Origin = Anchor.CentreLeft,
|
||||||
Height = 20,
|
Height = 16,
|
||||||
SupportLevel = User.SupportLevel
|
SupportLevel = User.SupportLevel
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user