mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Improve song select transition to gameplay
This commit is contained in:
@ -89,6 +89,8 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
protected BeatmapCarousel Carousel { get; private set; }
|
||||
|
||||
private ParallaxContainer wedgeBackground;
|
||||
|
||||
protected Container LeftArea { get; private set; }
|
||||
|
||||
private BeatmapInfoWedge beatmapInfoWedge;
|
||||
@ -165,10 +167,12 @@ namespace osu.Game.Screens.Select
|
||||
{
|
||||
new Drawable[]
|
||||
{
|
||||
new ParallaxContainer
|
||||
wedgeBackground = new ParallaxContainer
|
||||
{
|
||||
ParallaxAmount = 0.005f,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Child = new WedgeBackground
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
@ -609,9 +613,15 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
}
|
||||
|
||||
this.FadeIn(250);
|
||||
LeftArea.MoveToX(0, 400, Easing.OutQuint);
|
||||
LeftArea.FadeIn(100, Easing.OutQuint);
|
||||
|
||||
this.ScaleTo(1, 250, Easing.OutSine);
|
||||
FilterControl.MoveToY(0, 400, Easing.OutQuint);
|
||||
FilterControl.FadeIn(100, Easing.OutQuint);
|
||||
|
||||
this.FadeIn(250, Easing.OutQuint);
|
||||
|
||||
wedgeBackground.ScaleTo(1, 500, Easing.OutQuint);
|
||||
|
||||
FilterControl.Activate();
|
||||
}
|
||||
@ -629,9 +639,15 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
endLooping();
|
||||
|
||||
this.ScaleTo(1.1f, 250, Easing.InSine);
|
||||
FilterControl.MoveToY(-120, 250, Easing.OutQuint);
|
||||
FilterControl.FadeOut(100);
|
||||
|
||||
this.FadeOut(250);
|
||||
LeftArea.MoveToX(-150, 1800, Easing.OutQuint);
|
||||
LeftArea.FadeOut(200, Easing.OutQuint);
|
||||
|
||||
wedgeBackground.ScaleTo(2.4f, 400, Easing.OutQuint);
|
||||
|
||||
this.FadeOut(400, Easing.OutQuint);
|
||||
|
||||
FilterControl.Deactivate();
|
||||
base.OnSuspending(e);
|
||||
|
Reference in New Issue
Block a user