Allow UpdateableAvatar to handle displaying username as tooltip

This commit is contained in:
Dean Herbert
2021-06-17 16:25:55 +09:00
parent 044ff9d1d2
commit d9cc1c227b
6 changed files with 48 additions and 35 deletions

View File

@ -32,14 +32,13 @@ namespace osu.Game.Overlays.Toolbar
Add(new OpaqueBackground { Depth = 1 });
Flow.Add(avatar = new UpdateableAvatar
Flow.Add(avatar = new UpdateableAvatar(openOnClick: false)
{
Masking = true,
Size = new Vector2(32),
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
CornerRadius = 4,
OpenOnClick = { Value = false },
EdgeEffect = new EdgeEffectParameters
{
Type = EdgeEffectType.Shadow,