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:
parent
bdf680aecb
commit
4b3cffb246
@ -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,
|
||||
|
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user