mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 22:56:36 +09:00
Update screen transition events to use new event args
This commit is contained in:
@ -210,9 +210,9 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
#region Screen handling
|
||||
|
||||
public override void OnEntering(IScreen last)
|
||||
public override void OnEntering(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnEntering(last);
|
||||
base.OnEntering(e);
|
||||
|
||||
ApplyToBackground(b =>
|
||||
{
|
||||
@ -236,9 +236,9 @@ namespace osu.Game.Screens.Play
|
||||
showBatteryWarningIfNeeded();
|
||||
}
|
||||
|
||||
public override void OnResuming(IScreen last)
|
||||
public override void OnResuming(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnResuming(last);
|
||||
base.OnResuming(e);
|
||||
|
||||
Debug.Assert(CurrentPlayer != null);
|
||||
|
||||
@ -254,9 +254,9 @@ namespace osu.Game.Screens.Play
|
||||
contentIn();
|
||||
}
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
{
|
||||
base.OnSuspending(next);
|
||||
base.OnSuspending(e);
|
||||
|
||||
BackgroundBrightnessReduction = false;
|
||||
|
||||
@ -268,7 +268,7 @@ namespace osu.Game.Screens.Play
|
||||
highPassFilter.CutoffTo(0);
|
||||
}
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
public override bool OnExiting(ScreenExitEvent e)
|
||||
{
|
||||
cancelLoad();
|
||||
ContentOut();
|
||||
@ -284,7 +284,7 @@ namespace osu.Game.Screens.Play
|
||||
BackgroundBrightnessReduction = false;
|
||||
Beatmap.Value.Track.RemoveAdjustment(AdjustableProperty.Volume, volumeAdjustment);
|
||||
|
||||
return base.OnExiting(next);
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||
|
Reference in New Issue
Block a user