// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Graphics.Sprites; using osu.Game.Scoring; using osuTK; namespace osu.Game.Screens.Play.Break { public class BreakInfo : Container { public PercentageBreakInfoLine AccuracyDisplay; public BreakInfoLine RankDisplay; public BreakInfoLine GradeDisplay; public BreakInfo() { AutoSizeAxes = Axes.Both; Child = new FillFlowContainer { Direction = FillDirection.Vertical, Spacing = new Vector2(5), Children = new Drawable[] { new OsuSpriteText { Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, Text = "current progress".ToUpperInvariant(), TextSize = 15, Font = "Exo2.0-Black", }, new FillFlowContainer { AutoSizeAxes = Axes.Both, Origin = Anchor.TopCentre, Anchor = Anchor.TopCentre, Direction = FillDirection.Vertical, Children = new Drawable[] { AccuracyDisplay = new PercentageBreakInfoLine("Accuracy"), RankDisplay = new BreakInfoLine("Rank"), GradeDisplay = new BreakInfoLine("Grade"), }, } }, }; } } }