Apply beatmap settings when creating the DrawableStoryboard.

This commit is contained in:
Damnae
2017-09-25 11:03:57 +02:00
parent 0996867112
commit 2d4616fd43
3 changed files with 14 additions and 11 deletions

View File

@ -231,12 +231,9 @@ namespace osu.Game.Screens.Play
{
var beatmap = Beatmap.Value.Beatmap;
storyboard = beatmap.Storyboard.CreateDrawable();
storyboard.Width = storyboard.Height * beatmap.Storyboard.AspectRatio(beatmap.BeatmapInfo);
storyboard = beatmap.Storyboard.CreateDrawable(Beatmap.Value);
storyboard.Masking = true;
if (!beatmap.Storyboard.ReplacesBackground(beatmap.BeatmapInfo))
storyboard.BackgroundTexture = Beatmap.Value.Background;
storyboardContainer.Add(asyncLoad ? new AsyncLoadWrapper(storyboard) { RelativeSizeAxes = Axes.Both } : (Drawable)storyboard);
}