1
0
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:
voidedWarranties 2020-03-09 16:04:23 -07:00
parent 4624582703
commit 5aa99d8b34

View File

@ -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);
} }
} }