1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 11:02:54 +08:00

Merge pull request #8541 from smoogipoo/fix-default-explosion-position

Fix incorrect explosion position on default skin
This commit is contained in:
Dean Herbert 2020-04-01 21:46:58 +09:00 committed by GitHub
commit 312f94d810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,12 +40,12 @@ namespace osu.Game.Rulesets.Mania.UI.Components
if (Direction.Value == ScrollingDirection.Up)
{
hitTarget.Anchor = hitTarget.Origin = Anchor.TopLeft;
Explosions.Padding = new MarginPadding { Top = DefaultNotePiece.NOTE_HEIGHT };
Explosions.Padding = new MarginPadding { Top = DefaultNotePiece.NOTE_HEIGHT / 2 };
}
else
{
hitTarget.Anchor = hitTarget.Origin = Anchor.BottomLeft;
Explosions.Padding = new MarginPadding { Bottom = DefaultNotePiece.NOTE_HEIGHT };
Explosions.Padding = new MarginPadding { Bottom = DefaultNotePiece.NOTE_HEIGHT / 2 };
}
}
}