added hover effects to panels in social

at least partially QQ
This commit is contained in:
Aergwyn
2018-01-04 11:41:06 +01:00
parent d0c9d71ee7
commit bf64b8fc69
8 changed files with 123 additions and 17 deletions

View File

@ -44,7 +44,7 @@ namespace osu.Game.Users
new Avatar(user)
{
RelativeSizeAxes = Axes.Both,
OnLoadComplete = d => d.FadeInFromZero(200),
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out),
})
);
}

View File

@ -65,8 +65,8 @@ namespace osu.Game.Users
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
FillMode = FillMode.Fill,
OnLoadComplete = d => d.FadeInFromZero(200),
}, 0) { RelativeSizeAxes = Axes.Both },
OnLoadComplete = d => d.FadeInFromZero(400, Easing.Out)
}, 300) { RelativeSizeAxes = Axes.Both },
new Box
{
RelativeSizeAxes = Axes.Both,
@ -76,7 +76,7 @@ namespace osu.Game.Users
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Top = content_padding, Left = content_padding, Right = content_padding },
Padding = new MarginPadding { Top = content_padding, Horizontal = content_padding },
Children = new Drawable[]
{
new UpdateableAvatar
@ -167,11 +167,13 @@ namespace osu.Game.Users
};
if (user.IsSupporter)
{
infoContainer.Add(new SupporterIcon
{
RelativeSizeAxes = Axes.Y,
Width = 20f,
});
}
}
[BackgroundDependencyLoader(permitNulls: true)]