1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Fix distance snap grid circles not correctly being centered on snap point

This commit is contained in:
Dean Herbert 2023-06-16 17:16:11 +09:00
parent f5eb629709
commit d965d39c44

View File

@ -63,13 +63,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
for (int i = 0; i < requiredCircles; i++)
{
float diameter = (offset + (i + 1) * DistanceBetweenTicks) * 2;
const float thickness = 4;
AddInternal(new Ring(ReferenceObject, GetColourForIndexFromPlacement(i))
{
Position = StartPosition,
Origin = Anchor.Centre,
Size = new Vector2(diameter),
InnerRadius = 4 * 1f / diameter,
Size = new Vector2(diameter + thickness / 2),
InnerRadius = thickness * 1f / diameter,
});
}
}