mirror of
https://github.com/ppy/osu.git
synced 2025-02-05 09:32:54 +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))
|
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,
|
RelativeSizeAxes = Axes.Both,
|
||||||
SizeFilled = 0.5f,
|
SizeFilled = 0.5f,
|
||||||
|
@ -15,13 +15,14 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
|||||||
public class HitObjectArea : SkinReloadableDrawable
|
public class HitObjectArea : SkinReloadableDrawable
|
||||||
{
|
{
|
||||||
protected readonly IBindable<ScrollingDirection> Direction = new Bindable<ScrollingDirection>();
|
protected readonly IBindable<ScrollingDirection> Direction = new Bindable<ScrollingDirection>();
|
||||||
|
public readonly HitObjectContainer HitObjectContainer;
|
||||||
|
|
||||||
public HitObjectArea(HitObjectContainer hitObjectContainer)
|
public HitObjectArea(HitObjectContainer hitObjectContainer)
|
||||||
{
|
{
|
||||||
InternalChild = new BufferedContainer
|
InternalChild = new BufferedContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = hitObjectContainer
|
Child = HitObjectContainer = hitObjectContainer
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user