1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-05 12:32:58 +08:00

Adjust marker to match design proportions

This commit is contained in:
Dean Herbert 2022-05-24 18:25:57 +09:00
parent 3c2e57bf00
commit 3ace5f135e

View File

@ -495,26 +495,22 @@ namespace osu.Game.Screens.Edit.Compose.Components
[Resolved] [Resolved]
private OverlayColourProvider colourProvider { get; set; } private OverlayColourProvider colourProvider { get; set; }
private const float size = 10;
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load() private void load()
{ {
Colour = colourProvider.Background3; Colour = colourProvider.Background3;
Anchor = Anchor.TopLeft; Anchor = Anchor.BottomLeft;
Origin = Anchor.TopCentre; Origin = Anchor.BottomCentre;
Size = new Vector2(8, 6.5f);
Width = size;
RelativeSizeAxes = Axes.Y;
RelativePositionAxes = Axes.X; RelativePositionAxes = Axes.X;
InternalChildren = new Drawable[] InternalChildren = new Drawable[]
{ {
new EquilateralTriangle new Triangle
{ {
Origin = Anchor.BottomCentre, RelativeSizeAxes = Axes.Both,
Anchor = Anchor.BottomCentre,
Height = size,
EdgeSmoothness = new Vector2(1), EdgeSmoothness = new Vector2(1),
Colour = Color4.White, Colour = Color4.White,
} }