mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:53:21 +08:00
Remove horizontal transitions for now
They look bad with the current toolbar implementation. We can probably add them back once the toolbar is moved to the lounge.
This commit is contained in:
parent
4d1582d721
commit
4afc808ffc
@ -23,12 +23,6 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
||||
|
||||
public const float X_SHIFT = 200;
|
||||
|
||||
public const double X_MOVE_DURATION = 800;
|
||||
|
||||
public const double RESUME_TRANSITION_DELAY = DISAPPEAR_DURATION / 2;
|
||||
|
||||
public const double APPEAR_DURATION = 800;
|
||||
|
||||
public const double DISAPPEAR_DURATION = 500;
|
||||
@ -36,28 +30,23 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
public override void OnEntering(IScreen last)
|
||||
{
|
||||
this.FadeInFromZero(APPEAR_DURATION, Easing.OutQuint);
|
||||
this.FadeInFromZero(APPEAR_DURATION, Easing.OutQuint);
|
||||
this.MoveToX(X_SHIFT).MoveToX(0, X_MOVE_DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public override bool OnExiting(IScreen next)
|
||||
{
|
||||
this.FadeOut(DISAPPEAR_DURATION, Easing.OutQuint);
|
||||
this.MoveToX(X_SHIFT, X_MOVE_DURATION, Easing.OutQuint);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnResuming(IScreen last)
|
||||
{
|
||||
this.Delay(RESUME_TRANSITION_DELAY).FadeIn(APPEAR_DURATION, Easing.OutQuint);
|
||||
this.MoveToX(0, X_MOVE_DURATION, Easing.OutQuint);
|
||||
this.FadeIn(APPEAR_DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public override void OnSuspending(IScreen next)
|
||||
{
|
||||
this.FadeOut(DISAPPEAR_DURATION, Easing.OutQuint);
|
||||
this.MoveToX(-X_SHIFT, X_MOVE_DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public override string ToString() => Title;
|
||||
|
Loading…
Reference in New Issue
Block a user