1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 20:32:55 +08:00

Ensure both sprites are centered

This commit is contained in:
Bartłomiej Dach 2020-09-27 18:11:12 +02:00
parent 2f7c0b4934
commit 4944128631

View File

@ -41,10 +41,21 @@ namespace osu.Game.Rulesets.Taiko.Skinning
AutoSizeAxes = Axes.Both;
AddInternal(sprite);
AddInternal(sprite.With(s =>
{
s.Anchor = Anchor.Centre;
s.Origin = Anchor.Centre;
}));
if (strongSprite != null)
AddInternal(strongSprite.With(s => s.Alpha = 0));
{
AddInternal(strongSprite.With(s =>
{
s.Alpha = 0;
s.Anchor = Anchor.Centre;
s.Origin = Anchor.Centre;
}));
}
if (judgedObject is DrawableHit h)
{