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:
parent
996c156106
commit
19a44d65c5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user