mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Tweak cutoff effect for new Q value
This commit is contained in:
parent
df182ba92b
commit
266e62794e
@ -82,13 +82,15 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
base.PopIn();
|
base.PopIn();
|
||||||
this.FadeIn(PopupDialog.ENTER_DURATION, Easing.OutQuint);
|
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()
|
protected override void PopOut()
|
||||||
{
|
{
|
||||||
base.PopOut();
|
base.PopOut();
|
||||||
|
|
||||||
|
lpFilter.CutoffTo(lpFilter.MaxCutoff, 100, Easing.InCubic);
|
||||||
|
|
||||||
if (CurrentDialog?.State.Value == Visibility.Visible)
|
if (CurrentDialog?.State.Value == Visibility.Visible)
|
||||||
{
|
{
|
||||||
CurrentDialog.Hide();
|
CurrentDialog.Hide();
|
||||||
@ -96,7 +98,6 @@ namespace osu.Game.Overlays
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
|
this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
|
||||||
lpFilter.CutoffTo(2000, 100, Easing.InCubic).Then().CutoffTo(lpFilter.MaxCutoff);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)
|
||||||
|
Loading…
Reference in New Issue
Block a user