mirror of https://github.com/ppy/osu
Split padding out into constant to fix weird looking math
This commit is contained in:
parent
0c869367e1
commit
ba7f472247
|
@ -383,9 +383,11 @@ protected override void ParseConfigurationStream(Stream stream)
|
|||
|
||||
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 @@ public TrianglesSkin(SkinInfo skin, IStorageResourceProvider resources)
|
|||
|
||||
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