mirror of
https://github.com/ppy/osu
synced 2024-12-25 08:12:41 +00:00
Update screen method signatures to match framework API changes
This commit is contained in:
parent
8c6864727e
commit
8fe4443029
@ -33,39 +33,39 @@ namespace osu.Game.Overlays.FirstRunSetup
|
||||
};
|
||||
}
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
public override void OnEntering(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
base.OnEntering(e);
|
||||
this
|
||||
.FadeInFromZero(500)
|
||||
.MoveToX(offset)
|
||||
.MoveToX(0, 500, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public override void OnResuming(IScreen last)
|
||||
public override void OnResuming(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnResuming(last);
|
||||
base.OnResuming(e);
|
||||
this
|
||||
.FadeInFromZero(500)
|
||||
.MoveToX(0, 500, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
public override bool OnExiting(ScreenExitEvent e)
|
||||
{
|
||||
this
|
||||
.FadeOut(100)
|
||||
.MoveToX(offset, 500, Easing.OutQuint);
|
||||
|
||||
return base.OnExiting(next);
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
{
|
||||
this
|
||||
.FadeOut(100)
|
||||
.MoveToX(-offset, 500, Easing.OutQuint);
|
||||
|
||||
base.OnSuspending(next);
|
||||
base.OnSuspending(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -97,9 +97,9 @@ namespace osu.Game.Overlays.FirstRunSetup
|
||||
|
||||
private class PinnedMainMenu : MainMenu
|
||||
{
|
||||
public override void OnEntering(IScreen last)
|
||||
public override void OnEntering(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
base.OnEntering(e);
|
||||
|
||||
Buttons.ReturnToTopOnIdle = false;
|
||||
Buttons.State = ButtonSystemState.TopLevel;
|
||||
|
Loading…
Reference in New Issue
Block a user