mirror of
https://github.com/ppy/osu.git
synced 2025-03-10 07:07:18 +08:00
Hide background image when video is present
This commit is contained in:
parent
4624582703
commit
5aa99d8b34
@ -50,6 +50,9 @@ namespace osu.Game.Storyboards
|
|||||||
if (backgroundPath == null)
|
if (backgroundPath == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (GetLayer(LegacyStoryLayer.Video).Elements.Any())
|
||||||
|
return true;
|
||||||
|
|
||||||
return GetLayer(LegacyStoryLayer.Background).Elements.Any(e => e.Path.ToLowerInvariant() == backgroundPath);
|
return GetLayer(LegacyStoryLayer.Background).Elements.Any(e => e.Path.ToLowerInvariant() == backgroundPath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user