mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Remove DialogOverlay
local fades (is already managed by PopupDialog
s themselves)
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user