mirror of
https://github.com/ppy/osu.git
synced 2025-01-08 22:02:56 +08:00
ensure Proxy created when DI finished
This commit is contained in:
parent
05a87c9a6e
commit
6b1fc292c5
@ -36,7 +36,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
{
|
{
|
||||||
protected new DrawableSlider DrawableObject => (DrawableSlider)base.DrawableObject;
|
protected new DrawableSlider DrawableObject => (DrawableSlider)base.DrawableObject;
|
||||||
|
|
||||||
protected SliderCommandProxy Proxy;
|
protected SliderCommandProxy Proxy = null!;
|
||||||
|
|
||||||
protected SliderBodyPiece BodyPiece { get; private set; } = null!;
|
protected SliderBodyPiece BodyPiece { get; private set; } = null!;
|
||||||
protected SliderCircleOverlay HeadOverlay { get; private set; } = null!;
|
protected SliderCircleOverlay HeadOverlay { get; private set; } = null!;
|
||||||
@ -98,8 +98,6 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(OsuConfigManager config)
|
private void load(OsuConfigManager config)
|
||||||
{
|
{
|
||||||
Proxy = new SliderCommandProxy(commandHandler, HitObject);
|
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
BodyPiece = new SliderBodyPiece(),
|
BodyPiece = new SliderBodyPiece(),
|
||||||
@ -121,6 +119,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
Proxy = new SliderCommandProxy(commandHandler, HitObject);
|
||||||
|
|
||||||
controlPoints.BindTo(HitObject.Path.ControlPoints);
|
controlPoints.BindTo(HitObject.Path.ControlPoints);
|
||||||
controlPoints.CollectionChanged += (_, _) => fullPathCache.Invalidate();
|
controlPoints.CollectionChanged += (_, _) => fullPathCache.Invalidate();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user