mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 11:43:01 +08:00
Adjust transforms
This commit is contained in:
parent
ab4be3b75f
commit
7f425059ae
@ -261,7 +261,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
|
||||
private class ClickableTopScoreUsername : ClickableUserContainer
|
||||
{
|
||||
private const float username_fade_duration = 500;
|
||||
private const float username_fade_duration = 150;
|
||||
|
||||
private readonly FillFlowContainer hoverContainer;
|
||||
|
||||
|
@ -145,22 +145,19 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
});
|
||||
}
|
||||
|
||||
protected override void OnUserChanged(User user)
|
||||
{
|
||||
text.Text = textBold.Text = user.Username;
|
||||
}
|
||||
protected override void OnUserChanged(User user) => text.Text = textBold.Text = user.Username;
|
||||
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
textBold.FadeIn(fade_duration, Easing.OutQuint);
|
||||
text.FadeOut(fade_duration, Easing.OutQuint);
|
||||
textBold.Show();
|
||||
text.Hide();
|
||||
return base.OnHover(e);
|
||||
}
|
||||
|
||||
protected override void OnHoverLost(HoverLostEvent e)
|
||||
{
|
||||
textBold.FadeOut(fade_duration, Easing.OutQuint);
|
||||
text.FadeIn(fade_duration, Easing.OutQuint);
|
||||
textBold.Hide();
|
||||
text.Show();
|
||||
base.OnHoverLost(e);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user