1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-08 00:42:57 +08:00

Fix incorrect explosion position on default skin

This commit is contained in:
smoogipoo 2020-04-01 20:01:35 +09:00
parent af408d511f
commit f4d8defa48

View File

@ -64,14 +64,14 @@ namespace osu.Game.Rulesets.Mania.UI.Components
hitTarget.Anchor = hitTarget.Origin = Anchor.TopLeft; hitTarget.Anchor = hitTarget.Origin = Anchor.TopLeft;
Padding = new MarginPadding { Top = hitPosition }; Padding = new MarginPadding { Top = hitPosition };
Explosions.Padding = new MarginPadding { Top = DefaultNotePiece.NOTE_HEIGHT }; Explosions.Padding = new MarginPadding { Top = DefaultNotePiece.NOTE_HEIGHT / 2 };
} }
else else
{ {
hitTarget.Anchor = hitTarget.Origin = Anchor.BottomLeft; hitTarget.Anchor = hitTarget.Origin = Anchor.BottomLeft;
Padding = new MarginPadding { Bottom = hitPosition }; Padding = new MarginPadding { Bottom = hitPosition };
Explosions.Padding = new MarginPadding { Bottom = DefaultNotePiece.NOTE_HEIGHT }; Explosions.Padding = new MarginPadding { Bottom = DefaultNotePiece.NOTE_HEIGHT / 2 };
} }
} }
} }