// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Shapes; using osu.Game.Graphics; using osuTK; namespace osu.Game.Screens.Ranking.Expanded.Accuracy { /// /// A solid "notch" of the that appears at the ends of the rank circles to add separation. /// public class RankNotch : CompositeDrawable { private readonly float position; public RankNotch(float position) { this.position = position; RelativeSizeAxes = Axes.Both; } [BackgroundDependencyLoader] private void load() { InternalChild = new Container { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Rotation = position * 360f, Child = new Box { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, RelativeSizeAxes = Axes.Y, Height = AccuracyCircle.RANK_CIRCLE_RADIUS, Width = 1f, Colour = OsuColour.Gray(0.3f), EdgeSmoothness = new Vector2(1f) } }; } } }