mirror of
https://github.com/ppy/osu.git
synced 2025-01-07 20:42:54 +08:00
Move circle size to a constant
This commit is contained in:
parent
a963d652bc
commit
83fa4a9bb3
@ -65,6 +65,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
public const float THICKNESS = 3;
|
public const float THICKNESS = 3;
|
||||||
|
|
||||||
|
private const float circle_size = 16;
|
||||||
|
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => base.ReceivePositionalInputAt(screenSpacePos) || circle.ReceivePositionalInputAt(screenSpacePos);
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => base.ReceivePositionalInputAt(screenSpacePos) || circle.ReceivePositionalInputAt(screenSpacePos);
|
||||||
|
|
||||||
public TimelineHitObjectRepresentation(HitObject hitObject)
|
public TimelineHitObjectRepresentation(HitObject hitObject)
|
||||||
@ -101,7 +103,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
|
|
||||||
AddInternal(circle = new Circle
|
AddInternal(circle = new Circle
|
||||||
{
|
{
|
||||||
Size = new Vector2(16),
|
Size = new Vector2(circle_size),
|
||||||
Anchor = Anchor.CentreLeft,
|
Anchor = Anchor.CentreLeft,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativePositionAxes = Axes.X,
|
RelativePositionAxes = Axes.X,
|
||||||
|
Loading…
Reference in New Issue
Block a user