1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 23:43:03 +08:00

expose hitObjectContainer in HitObjectArea

This commit is contained in:
LastExceed 2020-07-13 11:55:13 +02:00
parent bdf680aecb
commit 4b3cffb246
2 changed files with 3 additions and 2 deletions

View File

@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Mania.Mods
foreach (Column column in maniaPlayfield.Stages.SelectMany(stage => stage.Columns))
{
column.HitObjectArea.ChildrenOfType<BufferedContainer>().First().Add(new LaneCover(false)
((BufferedContainer)column.HitObjectArea.HitObjectContainer.Parent).Add(new LaneCover(false)
{
RelativeSizeAxes = Axes.Both,
SizeFilled = 0.5f,

View File

@ -15,13 +15,14 @@ namespace osu.Game.Rulesets.Mania.UI.Components
public class HitObjectArea : SkinReloadableDrawable
{
protected readonly IBindable<ScrollingDirection> Direction = new Bindable<ScrollingDirection>();
public readonly HitObjectContainer HitObjectContainer;
public HitObjectArea(HitObjectContainer hitObjectContainer)
{
InternalChild = new BufferedContainer
{
RelativeSizeAxes = Axes.Both,
Child = hitObjectContainer
Child = HitObjectContainer = hitObjectContainer
};
}