1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Add centre marker

This commit is contained in:
Dean Herbert 2022-05-20 16:55:07 +09:00
parent 4712e512d7
commit cf97f4e409

View File

@ -119,6 +119,7 @@ namespace osu.Game.Screens.Edit.Timing
{
const float taper = 25;
const float swing_vertical_offset = -23;
const float lower_cover_height = 32;
var triangleSize = new Vector2(90, 120 + taper);
@ -148,6 +149,17 @@ namespace osu.Game.Screens.Edit.Timing
},
},
},
new Circle
{
Name = "Centre marker",
Colour = overlayColourProvider.Background5,
RelativeSizeAxes = Axes.Y,
Width = 2,
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
Y = -(lower_cover_height + 3),
Height = 0.65f,
},
swing = new Container
{
Name = @"Swing",
@ -228,9 +240,9 @@ namespace osu.Game.Screens.Edit.Timing
Name = @"Lower cover",
Anchor = Anchor.BottomCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.Both,
RelativeSizeAxes = Axes.X,
Masking = true,
Height = 0.28f,
Height = lower_cover_height,
Children = new Drawable[]
{
new Triangle