2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
|
using osu.Game.Graphics.Sprites;
|
2018-11-28 15:12:57 +08:00
|
|
|
|
using osu.Game.Scoring;
|
2018-11-20 15:51:59 +08:00
|
|
|
|
using osuTK;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.Break
|
|
|
|
|
{
|
|
|
|
|
public class BreakInfo : Container
|
|
|
|
|
{
|
|
|
|
|
public PercentageBreakInfoLine AccuracyDisplay;
|
|
|
|
|
public BreakInfoLine<int> RankDisplay;
|
|
|
|
|
public BreakInfoLine<ScoreRank> 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,
|
2018-07-24 20:42:06 +08:00
|
|
|
|
Text = "current progress".ToUpperInvariant(),
|
2018-04-13 17:19:50 +08:00
|
|
|
|
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<int>("Rank"),
|
|
|
|
|
GradeDisplay = new BreakInfoLine<ScoreRank>("Grade"),
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|