mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Do not change depth value of drawables currently contained within a container.
This commit is contained in:
@ -36,18 +36,18 @@ namespace osu.Game.Screens.Backgrounds
|
||||
|
||||
newBackground.Preload(Game, delegate
|
||||
{
|
||||
Background oldBackground = background;
|
||||
float newDepth = 0;
|
||||
if (background != null)
|
||||
{
|
||||
newDepth = background.Depth - 1;
|
||||
background.Flush();
|
||||
background.FadeOut(250);
|
||||
background.Expire();
|
||||
}
|
||||
|
||||
newBackground.Depth = newDepth;
|
||||
Add(background = newBackground);
|
||||
background.BlurSigma = blurTarget;
|
||||
|
||||
if (oldBackground != null)
|
||||
{
|
||||
oldBackground.Depth = 1;
|
||||
oldBackground.Flush();
|
||||
oldBackground.FadeOut(250);
|
||||
oldBackground.Expire();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user