mirror of
https://github.com/ppy/osu.git
synced 2025-03-05 10:53:10 +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);
|
Scale = new Vector2(final_scale);
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
AddRangeInternal(new Drawable[]
|
||||||
{
|
{
|
||||||
glow = new Sprite
|
glow = new Sprite
|
||||||
{
|
{
|
||||||
@ -69,7 +69,7 @@ namespace osu.Game.Rulesets.Osu.Skinning
|
|||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Texture = source.GetTexture("spinner-middle2")
|
Texture = source.GetTexture("spinner-middle2")
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateStateTransforms(DrawableHitObject drawableHitObject, ArmedState state)
|
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;
|
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.
|
// the old-style spinner relied heavily on absolute screen-space coordinate values.
|
||||||
// wrap everything in a container simulating absolute coords to preserve alignment
|
// 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)
|
protected override void UpdateStateTransforms(DrawableHitObject drawableHitObject, ArmedState state)
|
||||||
|
Loading…
Reference in New Issue
Block a user