1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Split padding out into constant to fix weird looking math

This commit is contained in:
Dean Herbert 2023-06-26 16:04:16 +09:00
parent 0c869367e1
commit ba7f472247
2 changed files with 6 additions and 2 deletions

View File

@ -383,9 +383,11 @@ namespace osu.Game.Skinning
if (keyCounter != null)
{
const float padding = 10;
keyCounter.Anchor = Anchor.BottomRight;
keyCounter.Origin = Anchor.BottomRight;
keyCounter.Position = new Vector2(-10, -10 - hitError.Width);
keyCounter.Position = new Vector2(-padding, -(padding + hitError.Width));
}
}
})

View File

@ -146,9 +146,11 @@ namespace osu.Game.Skinning
if (songProgress != null && keyCounter != null)
{
const float padding = 10;
keyCounter.Anchor = Anchor.BottomRight;
keyCounter.Origin = Anchor.BottomRight;
keyCounter.Position = new Vector2(-10, -60 - 10);
keyCounter.Position = new Vector2(-padding, -(60 + padding));
}
})
{