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:
parent
0c869367e1
commit
ba7f472247
@ -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));
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -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));
|
||||
}
|
||||
})
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user