1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 15:40:35 +08:00

Move circle size to a constant

This commit is contained in:
Dean Herbert
2020-01-21 22:24:04 +09:00
Unverified
parent a963d652bc
commit 83fa4a9bb3
@@ -65,6 +65,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
public const float THICKNESS = 3;
private const float circle_size = 16;
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => base.ReceivePositionalInputAt(screenSpacePos) || circle.ReceivePositionalInputAt(screenSpacePos);
public TimelineHitObjectRepresentation(HitObject hitObject)
@@ -101,7 +103,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
AddInternal(circle = new Circle
{
Size = new Vector2(16),
Size = new Vector2(circle_size),
Anchor = Anchor.CentreLeft,
Origin = Anchor.Centre,
RelativePositionAxes = Axes.X,