Rename {Drawable -> Clickable}Avatar

This commit is contained in:
Bartłomiej Dach
2020-12-26 13:54:10 +01:00
parent 3e06f592a1
commit 0b42b4b955
4 changed files with 9 additions and 8 deletions

View File

@ -14,7 +14,7 @@ using osu.Game.Graphics.Containers;
namespace osu.Game.Users.Drawables
{
[LongRunningLoad]
public class DrawableAvatar : Container
public class ClickableAvatar : Container
{
/// <summary>
/// Whether to open the user's profile when clicked.
@ -27,10 +27,11 @@ namespace osu.Game.Users.Drawables
private OsuGame game { get; set; }
/// <summary>
/// An avatar for specified user.
/// A clickable avatar for specified user, with UI sounds included.
/// If <see cref="OpenOnClick"/> is <c>true</c>, clicking will open the user's profile.
/// </summary>
/// <param name="user">The user. A null value will get a placeholder avatar.</param>
public DrawableAvatar(User user = null)
public ClickableAvatar(User user = null)
{
this.user = user;
}

View File

@ -65,7 +65,7 @@ namespace osu.Game.Users.Drawables
if (user == null && !ShowGuestOnNull)
return null;
var avatar = new DrawableAvatar(user)
var avatar = new ClickableAvatar(user)
{
RelativeSizeAxes = Axes.Both,
};