1
0
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:
Dean Herbert
2023-12-28 14:10:52 +09:00
Unverified
parent 0b8faba081
commit f8d6b8e347
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;
}
}