mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Apply beatmap settings when creating the DrawableStoryboard.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user