mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Reset top score avatar before updating it
This commit is contained in:
@ -52,6 +52,20 @@ namespace osu.Game.Users.Drawables
|
||||
User = user;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Fades and expires the <see cref="ModelBackedDrawable{T}.DisplayedDrawable"/>, and sets the
|
||||
/// <see cref="ModelBackedDrawable{T}.Model"/> to null.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Can be used when the <see cref="ModelBackedDrawable{T}.DisplayedDrawable"/> needs to be removed instantly.
|
||||
/// </remarks>
|
||||
public void Reset()
|
||||
{
|
||||
DisplayedDrawable?.FadeOut().Expire();
|
||||
|
||||
User = null;
|
||||
}
|
||||
|
||||
protected override Drawable CreateDrawable(User user)
|
||||
{
|
||||
if (user == null && !ShowGuestOnNull)
|
||||
|
Reference in New Issue
Block a user