Expose drawable overlay layer

This commit is contained in:
Bartłomiej Dach 2020-05-18 21:12:14 +02:00
parent 6e27247cdf
commit 2398f2e537
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
using System.Threading;
using osuTK;
using osu.Framework.Allocation;
@ -72,6 +73,8 @@ private void load(FileStore fileStore, GameplayClock clock, CancellationToken? c
}
}
public DrawableStoryboardLayer OverlayLayer => Children.Single(layer => layer.Name == "Overlay");
private void updateLayerVisibility()
{
foreach (var layer in Children)

View File

@ -33,6 +33,6 @@ public void Add(IStoryboardElement element)
}
public DrawableStoryboardLayer CreateDrawable()
=> new DrawableStoryboardLayer(this) { Depth = Depth, };
=> new DrawableStoryboardLayer(this) { Depth = Depth, Name = Name };
}
}