1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 05:52:54 +08:00

Tidy up code

This commit is contained in:
Dean Herbert 2021-06-04 15:18:16 +09:00
parent 996c156106
commit 19a44d65c5

View File

@ -26,11 +26,12 @@ namespace osu.Game.Graphics.Backgrounds
if (Beatmap.Storyboard.ReplacesBackground) if (Beatmap.Storyboard.ReplacesBackground)
Sprite.Alpha = 0; Sprite.Alpha = 0;
var audio = new AudioContainer { RelativeSizeAxes = Axes.Both }; LoadComponentAsync(new AudioContainer
audio.Volume.Value = 0; {
RelativeSizeAxes = Axes.Both,
AddInternal(audio); Volume = { Value = 0 },
LoadComponentAsync(new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }, audio.Add); Child = new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }
}, AddInternal);
} }
} }
} }