mirror of
https://github.com/ppy/osu.git
synced 2025-03-09 12:17:24 +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)
|
||||
return false;
|
||||
|
||||
if (GetLayer(LegacyStoryLayer.Video).Elements.Any())
|
||||
return true;
|
||||
|
||||
return GetLayer(LegacyStoryLayer.Background).Elements.Any(e => e.Path.ToLowerInvariant() == backgroundPath);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user