mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
use created storyboard to check for drawables instead
This commit is contained in:
@ -22,16 +22,17 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
if (!Beatmap.Storyboard.HasDrawable)
|
|
||||||
return;
|
|
||||||
|
|
||||||
var storyboard = new Storyboard { BeatmapInfo = Beatmap.BeatmapInfo };
|
var storyboard = new Storyboard { BeatmapInfo = Beatmap.BeatmapInfo };
|
||||||
|
|
||||||
foreach (var layer in storyboard.Layers)
|
foreach (var layer in storyboard.Layers)
|
||||||
{
|
{
|
||||||
if (layer.Name != "Fail")
|
if (layer.Name != "Fail")
|
||||||
layer.Elements = Beatmap.Storyboard.GetLayer(layer.Name).Elements.Where(e => !(e is StoryboardSampleInfo)).ToList();
|
layer.Elements = Beatmap.Storyboard.GetLayer(layer.Name).Elements.Where(e => !(e is StoryboardSampleInfo)).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!storyboard.HasDrawable)
|
||||||
|
return;
|
||||||
|
|
||||||
if (storyboard.ReplacesBackground)
|
if (storyboard.ReplacesBackground)
|
||||||
{
|
{
|
||||||
Sprite.Texture = Texture.WhitePixel;
|
Sprite.Texture = Texture.WhitePixel;
|
||||||
|
Reference in New Issue
Block a user