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:
parent
64e3325b41
commit
11c18952e3
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user