1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-14 23:33:23 +08:00

Move load-complete fade specification inside

This commit is contained in:
Bartłomiej Dach 2020-12-26 14:06:09 +01:00
parent e8f96b2401
commit 8ec7970b6a
2 changed files with 6 additions and 1 deletions

View File

@ -35,5 +35,11 @@ namespace osu.Game.Users.Drawables
Texture ??= textures.Get(@"Online/avatar-guest");
}
protected override void LoadComplete()
{
base.LoadComplete();
this.FadeInFromZero(300, Easing.OutQuint);
}
}
}

View File

@ -70,7 +70,6 @@ namespace osu.Game.Users.Drawables
RelativeSizeAxes = Axes.Both,
};
avatar.OnLoadComplete += d => d.FadeInFromZero(300, Easing.OutQuint);
avatar.OpenOnClick.BindTo(OpenOnClick);
return avatar;