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 @@ 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));
}
}
})

View File

@ -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));
}
})
{