mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +09:00
Fix backgrounds not properly being faded in song select
This commit is contained in:
@ -30,10 +30,6 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
|
|
||||||
beatmap = value;
|
beatmap = value;
|
||||||
|
|
||||||
FadeContainer = CreateFadeContainer();
|
|
||||||
InternalChild = FadeContainer;
|
|
||||||
EnableUserDim.BindTo(FadeContainer.EnableUserDim);
|
|
||||||
|
|
||||||
Schedule(() =>
|
Schedule(() =>
|
||||||
{
|
{
|
||||||
LoadComponentAsync(new BeatmapBackground(beatmap), b => Schedule(() =>
|
LoadComponentAsync(new BeatmapBackground(beatmap), b => Schedule(() =>
|
||||||
@ -47,7 +43,7 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
Background.Expire();
|
Background.Expire();
|
||||||
}
|
}
|
||||||
b.Depth = newDepth;
|
b.Depth = newDepth;
|
||||||
FadeContainer.Child = Background = b;
|
FadeContainer.Add(Background = b);
|
||||||
Background.BlurSigma = BlurTarget;
|
Background.BlurSigma = BlurTarget;
|
||||||
FadeContainer.StoryboardReplacesBackground.BindTo(StoryboardReplacesBackground);
|
FadeContainer.StoryboardReplacesBackground.BindTo(StoryboardReplacesBackground);
|
||||||
}));
|
}));
|
||||||
@ -57,6 +53,9 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
|
|
||||||
public BackgroundScreenBeatmap(WorkingBeatmap beatmap = null)
|
public BackgroundScreenBeatmap(WorkingBeatmap beatmap = null)
|
||||||
{
|
{
|
||||||
|
FadeContainer = CreateFadeContainer();
|
||||||
|
InternalChild = FadeContainer;
|
||||||
|
EnableUserDim.BindTo(FadeContainer.EnableUserDim);
|
||||||
Beatmap = beatmap;
|
Beatmap = beatmap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user