mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Fix slightly incorrect calculations
This commit is contained in:
parent
4314f9f46a
commit
84fc6e92db
@ -65,14 +65,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;
|
||||
float diameter = (offset + (i + 1) * DistanceBetweenTicks + thickness / 2) * 2;
|
||||
|
||||
AddInternal(new Ring(ReferenceObject, GetColourForIndexFromPlacement(i))
|
||||
{
|
||||
Position = StartPosition,
|
||||
Origin = Anchor.Centre,
|
||||
Size = new Vector2(diameter + thickness / 2),
|
||||
Size = new Vector2(diameter),
|
||||
InnerRadius = thickness * 1f / diameter,
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user