mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 06:49:54 +08:00
Adjust toolbar animations / layering to feel better
This commit is contained in:
@@ -183,7 +183,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
flashBackground.FadeOutFromOne(800, Easing.OutQuint);
|
||||
flashBackground.FadeIn(50).Then().FadeOutFromOne(800, Easing.OutQuint);
|
||||
tooltipContainer.FadeOut(100);
|
||||
return base.OnClick(e);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = colours.Carmine.Opacity(180),
|
||||
Blending = BlendingParameters.Additive,
|
||||
Depth = 2,
|
||||
Depth = float.MaxValue,
|
||||
Alpha = 0,
|
||||
});
|
||||
|
||||
@@ -65,11 +65,11 @@ namespace osu.Game.Overlays.Toolbar
|
||||
switch (state.NewValue)
|
||||
{
|
||||
case Visibility.Hidden:
|
||||
stateBackground.FadeOut(200);
|
||||
stateBackground.FadeOut(200, Easing.OutQuint);
|
||||
break;
|
||||
|
||||
case Visibility.Visible:
|
||||
stateBackground.FadeIn(200);
|
||||
stateBackground.FadeIn(200, Easing.OutQuint);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user