mirror of
https://github.com/ppy/osu
synced 2025-01-01 11:52:20 +00:00
Tidy up code
This commit is contained in:
parent
996c156106
commit
19a44d65c5
@ -26,11 +26,12 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
if (Beatmap.Storyboard.ReplacesBackground)
|
||||
Sprite.Alpha = 0;
|
||||
|
||||
var audio = new AudioContainer { RelativeSizeAxes = Axes.Both };
|
||||
audio.Volume.Value = 0;
|
||||
|
||||
AddInternal(audio);
|
||||
LoadComponentAsync(new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }, audio.Add);
|
||||
LoadComponentAsync(new AudioContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Volume = { Value = 0 },
|
||||
Child = new DrawableStoryboard(Beatmap.Storyboard) { Clock = new InterpolatingFramedClock(Beatmap.Track) }
|
||||
}, AddInternal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user