mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Merge pull request #21118 from peppy/increase-main-menu-background-change-delay
Adjust transition effect for main menu backgrounds
This commit is contained in:
commit
93f84ece0d
@ -111,8 +111,6 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
private void load(LargeTextureStore textures)
|
||||
{
|
||||
Sprite.Texture = textures.Get(url) ?? textures.Get(fallback_texture_name);
|
||||
// ensure we're not loading in without a transition.
|
||||
this.FadeInFromZero(200, Easing.InOutSine);
|
||||
}
|
||||
|
||||
public override bool Equals(Background other)
|
||||
|
@ -95,14 +95,14 @@ namespace osu.Game.Screens.Backgrounds
|
||||
nextTask = Scheduler.AddDelayed(() =>
|
||||
{
|
||||
LoadComponentAsync(nextBackground, displayNext, cancellationTokenSource.Token);
|
||||
}, 100);
|
||||
}, 500);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
private void displayNext(Background newBackground)
|
||||
{
|
||||
background?.FadeOut(800, Easing.InOutSine);
|
||||
background?.FadeOut(800, Easing.OutQuint);
|
||||
background?.Expire();
|
||||
|
||||
AddInternal(background = newBackground);
|
||||
|
Loading…
Reference in New Issue
Block a user