mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 13:33:52 +08:00
Merge pull request #23642 from Joehuu/remove-logo-arriving-workaround
Remove `OsuScreen.ApplyLogoArrivingDefaults()`
This commit is contained in:
commit
9869e815ce
@ -233,7 +233,13 @@ namespace osu.Game.Screens
|
||||
/// </summary>
|
||||
protected virtual void LogoArriving(OsuLogo logo, bool resuming)
|
||||
{
|
||||
ApplyLogoArrivingDefaults(logo);
|
||||
logo.Action = null;
|
||||
logo.FadeOut(300, Easing.OutQuint);
|
||||
logo.Anchor = Anchor.TopLeft;
|
||||
logo.Origin = Anchor.Centre;
|
||||
logo.RelativePositionAxes = Axes.Both;
|
||||
logo.Triangles = true;
|
||||
logo.Ripple = true;
|
||||
}
|
||||
|
||||
private void applyArrivingDefaults(bool isResuming)
|
||||
@ -244,22 +250,6 @@ namespace osu.Game.Screens
|
||||
}, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Applies default animations to an arriving logo.
|
||||
/// Todo: This should not exist.
|
||||
/// </summary>
|
||||
/// <param name="logo">The logo to apply animations to.</param>
|
||||
public static void ApplyLogoArrivingDefaults(OsuLogo logo)
|
||||
{
|
||||
logo.Action = null;
|
||||
logo.FadeOut(300, Easing.OutQuint);
|
||||
logo.Anchor = Anchor.TopLeft;
|
||||
logo.Origin = Anchor.Centre;
|
||||
logo.RelativePositionAxes = Axes.Both;
|
||||
logo.Triangles = true;
|
||||
logo.Ripple = true;
|
||||
}
|
||||
|
||||
private void onExitingLogo()
|
||||
{
|
||||
logo?.AppendAnimatingAction(() => LogoExiting(logo), false);
|
||||
|
Loading…
Reference in New Issue
Block a user