1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 11:42:56 +08:00

Allow children to be added in base class

This commit is contained in:
Dean Herbert 2020-11-05 18:03:24 +09:00
parent 64e3325b41
commit 11c18952e3
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
{
Scale = new Vector2(final_scale);
InternalChildren = new Drawable[]
AddRangeInternal(new Drawable[]
{
glow = new Sprite
{
@ -69,7 +69,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
Origin = Anchor.Centre,
Texture = source.GetTexture("spinner-middle2")
}
};
});
}
protected override void UpdateStateTransforms(DrawableHitObject drawableHitObject, ArmedState state)

View File

@ -34,7 +34,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
{
spinnerBlink = source.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.SpinnerNoBlink)?.Value != true;
InternalChild = new Container
AddInternal(new Container
{
// the old-style spinner relied heavily on absolute screen-space coordinate values.
// wrap everything in a container simulating absolute coords to preserve alignment
@ -77,7 +77,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
}
}
}
};
});
}
protected override void UpdateStateTransforms(DrawableHitObject drawableHitObject, ArmedState state)