mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 21:33:04 +08:00
Rename methods back
This commit is contained in:
parent
e2005c4431
commit
4874371dbf
@ -17,9 +17,9 @@ namespace osu.Game.Screens
|
|||||||
ValidForResume = false;
|
ValidForResume = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
base.OnArrivedLogo(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
logo.RelativePositionAxes = Axes.Both;
|
logo.RelativePositionAxes = Axes.Both;
|
||||||
logo.Triangles = false;
|
logo.Triangles = false;
|
||||||
|
@ -109,9 +109,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
public const int EXIT_DELAY = 3000;
|
public const int EXIT_DELAY = 3000;
|
||||||
|
|
||||||
protected override void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
base.OnArrivedLogo(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
logo.RelativePositionAxes = Axes.Both;
|
logo.RelativePositionAxes = Axes.Both;
|
||||||
|
|
||||||
|
@ -103,9 +103,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
Beatmap.ValueChanged += beatmap_ValueChanged;
|
Beatmap.ValueChanged += beatmap_ValueChanged;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
base.OnArrivedLogo(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
buttons.SetOsuLogo(logo);
|
buttons.SetOsuLogo(logo);
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
buttons.State = MenuState.TopLevel;
|
buttons.State = MenuState.TopLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnSuspendingLogo(OsuLogo logo)
|
protected override void LogoSuspending(OsuLogo logo)
|
||||||
{
|
{
|
||||||
logo.FadeOut(300, Easing.InSine)
|
logo.FadeOut(300, Easing.InSine)
|
||||||
.ScaleTo(0.2f, 300, Easing.InSine)
|
.ScaleTo(0.2f, 300, Easing.InSine)
|
||||||
|
@ -76,7 +76,7 @@ namespace osu.Game.Screens
|
|||||||
protected override void OnResuming(Screen last)
|
protected override void OnResuming(Screen last)
|
||||||
{
|
{
|
||||||
base.OnResuming(last);
|
base.OnResuming(last);
|
||||||
logo.DelayUntilTransformsFinished().Schedule(() => OnArrivedLogo(logo, true));
|
logo.DelayUntilTransformsFinished().Schedule(() => LogoArriving(logo, true));
|
||||||
sampleExit?.Play();
|
sampleExit?.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -122,7 +122,7 @@ namespace osu.Game.Screens
|
|||||||
|
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
|
|
||||||
logo.DelayUntilTransformsFinished().Schedule(() => OnArrivedLogo(logo, false));
|
logo.DelayUntilTransformsFinished().Schedule(() => LogoArriving(logo, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnExiting(Screen next)
|
protected override bool OnExiting(Screen next)
|
||||||
@ -151,7 +151,7 @@ namespace osu.Game.Screens
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired when this screen was entered or resumed and the logo state is required to be adjusted.
|
/// Fired when this screen was entered or resumed and the logo state is required to be adjusted.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected virtual void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
logo.Action = null;
|
logo.Action = null;
|
||||||
logo.FadeOut(300, Easing.OutQuint);
|
logo.FadeOut(300, Easing.OutQuint);
|
||||||
@ -160,26 +160,26 @@ namespace osu.Game.Screens
|
|||||||
private void onExitingLogo()
|
private void onExitingLogo()
|
||||||
{
|
{
|
||||||
logo.ClearTransforms();
|
logo.ClearTransforms();
|
||||||
OnExitingLogo(logo);
|
LogoExiting(logo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired when this screen was exited to add any outwards transition to the logo.
|
/// Fired when this screen was exited to add any outwards transition to the logo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnExitingLogo(OsuLogo logo)
|
protected virtual void LogoExiting(OsuLogo logo)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onSuspendingLogo()
|
private void onSuspendingLogo()
|
||||||
{
|
{
|
||||||
logo.ClearTransforms();
|
logo.ClearTransforms();
|
||||||
OnSuspendingLogo(logo);
|
LogoSuspending(logo);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Fired when this screen was suspended to add any outwards transition to the logo.
|
/// Fired when this screen was suspended to add any outwards transition to the logo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void OnSuspendingLogo(OsuLogo logo)
|
protected virtual void LogoSuspending(OsuLogo logo)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,9 +95,9 @@ namespace osu.Game.Screens.Play
|
|||||||
this.Delay(2150).Schedule(pushWhenLoaded);
|
this.Delay(2150).Schedule(pushWhenLoaded);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
base.OnArrivedLogo(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
logo.ClearTransforms(targetMember: nameof(Position));
|
logo.ClearTransforms(targetMember: nameof(Position));
|
||||||
logo.RelativePositionAxes = Axes.Both;
|
logo.RelativePositionAxes = Axes.Both;
|
||||||
|
@ -311,9 +311,9 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private const double logo_transition = 250;
|
private const double logo_transition = 250;
|
||||||
|
|
||||||
protected override void OnArrivedLogo(OsuLogo logo, bool resuming)
|
protected override void LogoArriving(OsuLogo logo, bool resuming)
|
||||||
{
|
{
|
||||||
base.OnArrivedLogo(logo, resuming);
|
base.LogoArriving(logo, resuming);
|
||||||
|
|
||||||
logo.ClearTransforms();
|
logo.ClearTransforms();
|
||||||
logo.RelativePositionAxes = Axes.Both;
|
logo.RelativePositionAxes = Axes.Both;
|
||||||
@ -337,9 +337,9 @@ namespace osu.Game.Screens.Select
|
|||||||
logo.Action = () => carouselRaisedStart();
|
logo.Action = () => carouselRaisedStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnExitingLogo(OsuLogo logo)
|
protected override void LogoExiting(OsuLogo logo)
|
||||||
{
|
{
|
||||||
base.OnExitingLogo(logo);
|
base.LogoExiting(logo);
|
||||||
logo.ScaleTo(0.2f, logo_transition, Easing.OutQuint);
|
logo.ScaleTo(0.2f, logo_transition, Easing.OutQuint);
|
||||||
logo.FadeOut(logo_transition, Easing.OutQuint);
|
logo.FadeOut(logo_transition, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user