mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:02:57 +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)
|
private void load(LargeTextureStore textures)
|
||||||
{
|
{
|
||||||
Sprite.Texture = textures.Get(url) ?? textures.Get(fallback_texture_name);
|
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)
|
public override bool Equals(Background other)
|
||||||
|
@ -95,14 +95,14 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
nextTask = Scheduler.AddDelayed(() =>
|
nextTask = Scheduler.AddDelayed(() =>
|
||||||
{
|
{
|
||||||
LoadComponentAsync(nextBackground, displayNext, cancellationTokenSource.Token);
|
LoadComponentAsync(nextBackground, displayNext, cancellationTokenSource.Token);
|
||||||
}, 100);
|
}, 500);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayNext(Background newBackground)
|
private void displayNext(Background newBackground)
|
||||||
{
|
{
|
||||||
background?.FadeOut(800, Easing.InOutSine);
|
background?.FadeOut(800, Easing.OutQuint);
|
||||||
background?.Expire();
|
background?.Expire();
|
||||||
|
|
||||||
AddInternal(background = newBackground);
|
AddInternal(background = newBackground);
|
||||||
|
Loading…
Reference in New Issue
Block a user