mirror of
https://github.com/ppy/osu.git
synced 2025-02-01 02:03:19 +08:00
Simplify catcher trail creation
This commit is contained in:
parent
9b6ab4360e
commit
c094914023
@ -121,10 +121,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
CatcherTrailSprite sprite = trailPool.Get();
|
CatcherTrailSprite sprite = trailPool.Get();
|
||||||
|
|
||||||
sprite.AnimationState = catcher.CurrentState;
|
sprite.AnimationState = catcher.CurrentState;
|
||||||
sprite.Origin = catcher.Origin;
|
|
||||||
sprite.Scale = catcher.Scale;
|
sprite.Scale = catcher.Scale;
|
||||||
sprite.Blending = BlendingParameters.Additive;
|
|
||||||
sprite.RelativePositionAxes = catcher.RelativePositionAxes;
|
|
||||||
sprite.Position = catcher.Position;
|
sprite.Position = catcher.Position;
|
||||||
|
|
||||||
target.Add(sprite);
|
target.Add(sprite);
|
||||||
|
@ -20,6 +20,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
{
|
{
|
||||||
Size = new Vector2(CatcherArea.CATCHER_SIZE);
|
Size = new Vector2(CatcherArea.CATCHER_SIZE);
|
||||||
Origin = Anchor.TopCentre;
|
Origin = Anchor.TopCentre;
|
||||||
|
Blending = BlendingParameters.Additive;
|
||||||
InternalChild = body = new SkinnableCatcher();
|
InternalChild = body = new SkinnableCatcher();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user