mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 03:23:03 +08:00
Don't play hover/select sounds for UpdatableAvatar unless it's interactable
This commit is contained in:
parent
b8124f7abf
commit
b01cf5c937
@ -69,14 +69,20 @@ namespace osu.Game.Users.Drawables
|
||||
if (user == null && !showGuestOnNull)
|
||||
return null;
|
||||
|
||||
var avatar = new ClickableAvatar(user)
|
||||
if (!openOnClick)
|
||||
{
|
||||
return new DrawableAvatar(user)
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
}
|
||||
|
||||
return new ClickableAvatar(user)
|
||||
{
|
||||
OpenOnClick = openOnClick,
|
||||
ShowUsernameTooltip = showUsernameTooltip,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
};
|
||||
|
||||
return avatar;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user