mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Rename {Drawable -> Clickable}Avatar
This commit is contained in:
@ -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;
|
||||
}
|
@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user