1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:12:54 +08:00

Tweak cutoff effect for new Q value

This commit is contained in:
Jamie Taylor 2021-10-06 11:50:14 +09:00
parent df182ba92b
commit 266e62794e
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C

View File

@ -82,13 +82,15 @@ namespace osu.Game.Overlays
{
base.PopIn();
this.FadeIn(PopupDialog.ENTER_DURATION, Easing.OutQuint);
lpFilter.CutoffTo(2000).Then().CutoffTo(150, 100, Easing.OutCubic);
lpFilter.CutoffTo(300, 100, Easing.OutCubic);
}
protected override void PopOut()
{
base.PopOut();
lpFilter.CutoffTo(lpFilter.MaxCutoff, 100, Easing.InCubic);
if (CurrentDialog?.State.Value == Visibility.Visible)
{
CurrentDialog.Hide();
@ -96,7 +98,6 @@ namespace osu.Game.Overlays
}
this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
lpFilter.CutoffTo(2000, 100, Easing.InCubic).Then().CutoffTo(lpFilter.MaxCutoff);
}
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)