1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:13:31 +08:00

Late-add the HitObjects container in the Playfield.

Allows derivers to define the Content container in the constructor, to redirect the positioning of the HitObjects container.
This commit is contained in:
smoogipooo 2017-03-21 14:53:55 +09:00
parent 7cbc5b24c8
commit 66752af81f

View File

@ -7,6 +7,7 @@ using osu.Game.Modes.Objects;
using osu.Game.Modes.Objects.Drawables;
using OpenTK;
using osu.Game.Modes.Judgements;
using osu.Framework.Allocation;
namespace osu.Game.Modes.UI
{
@ -45,10 +46,16 @@ namespace osu.Game.Modes.UI
}
});
Add(HitObjects = new HitObjectContainer<DrawableHitObject<TObject, TJudgement>>
HitObjects = new HitObjectContainer<DrawableHitObject<TObject, TJudgement>>
{
RelativeSizeAxes = Axes.Both,
});
};
}
[BackgroundDependencyLoader]
private void load()
{
Add(HitObjects);
}
/// <summary>