Add second UserPanel to visual test, center cover sprite

This commit is contained in:
DrabWeb
2017-05-22 03:27:08 -03:00
parent 7ce3b73ecd
commit a73cf92994
2 changed files with 32 additions and 13 deletions

View File

@ -34,6 +34,7 @@ namespace osu.Game.Users
{
this.user = user;
Width = 300;
Height = height;
Masking = true;
CornerRadius = 5;
@ -168,6 +169,8 @@ namespace osu.Game.Users
cover.Add(new AsyncLoadWrapper(new Sprite
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Texture = textures.Get(user.CoverUrl),
FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(200),