Remove DialogOverlay local fades (is already managed by PopupDialogs themselves)

This commit is contained in:
Dean Herbert
2022-05-05 15:02:23 +09:00
parent 326ff3b6e9
commit f6a6a11391

View File

@ -87,18 +87,16 @@ namespace osu.Game.Overlays
protected override void PopIn() protected override void PopIn()
{ {
base.PopIn(); base.PopIn();
this.FadeIn(PopupDialog.ENTER_DURATION, Easing.OutQuint);
lowPassFilter.CutoffTo(300, 100, Easing.OutCubic); lowPassFilter.CutoffTo(300, 100, Easing.OutCubic);
} }
protected override void PopOut() protected override void PopOut()
{ {
base.PopOut(); base.PopOut();
this.FadeOut(PopupDialog.EXIT_DURATION, Easing.InSine);
lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF, 100, Easing.InCubic); lowPassFilter.CutoffTo(AudioFilter.MAX_LOWPASS_CUTOFF, 100, Easing.InCubic);
if (CurrentDialog?.State.Value == Visibility.Visible) CurrentDialog.Hide(); if (CurrentDialog?.State.Value == Visibility.Visible)
CurrentDialog.Hide();
} }
public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e) public override bool OnPressed(KeyBindingPressEvent<GlobalAction> e)