2019-01-24 08:43:03 +00: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 09:19:50 +00:00
|
|
|
|
|
2022-06-17 07:37:17 +00:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2017-09-20 19:33:07 +00:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2019-02-12 04:04:46 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2017-09-20 19:33:07 +00:00
|
|
|
|
using osu.Game.Graphics.Sprites;
|
2022-01-28 04:53:48 +00:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2018-11-28 07:12:57 +00:00
|
|
|
|
using osu.Game.Scoring;
|
2018-11-20 07:51:59 +00:00
|
|
|
|
using osuTK;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-03-03 15:50:41 +00:00
|
|
|
|
namespace osu.Game.Screens.Play.Break
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
2018-03-03 15:50:41 +00:00
|
|
|
|
public partial class BreakInfo : Container
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
2018-03-03 15:50:41 +00:00
|
|
|
|
public PercentageBreakInfoLine AccuracyDisplay;
|
2021-10-19 03:12:33 +00:00
|
|
|
|
|
|
|
|
|
// Currently unused but may be revisited in a future design update (see https://github.com/ppy/osu/discussions/15185)
|
|
|
|
|
// public BreakInfoLine<int> RankDisplay;
|
2018-03-03 15:50:41 +00:00
|
|
|
|
public BreakInfoLine<ScoreRank> GradeDisplay;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2018-03-03 15:50:41 +00:00
|
|
|
|
public BreakInfo()
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
|
|
|
|
AutoSizeAxes = Axes.Both;
|
2017-10-05 01:38:13 +00:00
|
|
|
|
Child = new FillFlowContainer
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
2017-10-05 01:38:13 +00:00
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
|
Spacing = new Vector2(5),
|
|
|
|
|
Children = new Drawable[]
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
2017-10-05 01:38:13 +00:00
|
|
|
|
new OsuSpriteText
|
2017-09-20 19:33:07 +00:00
|
|
|
|
{
|
2017-10-05 01:38:13 +00:00
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
|
Origin = Anchor.TopCentre,
|
2018-07-24 12:42:06 +00:00
|
|
|
|
Text = "current progress".ToUpperInvariant(),
|
2020-03-16 23:32:25 +00:00
|
|
|
|
Font = OsuFont.GetFont(weight: FontWeight.Bold, size: 15),
|
2017-09-20 19:33:07 +00:00
|
|
|
|
},
|
2017-10-05 01:38:13 +00:00
|
|
|
|
new FillFlowContainer
|
|
|
|
|
{
|
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
|
Direction = FillDirection.Vertical,
|
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
2022-04-26 16:16:36 +00:00
|
|
|
|
AccuracyDisplay = new PercentageBreakInfoLine(BeatmapsetsStrings.ShowScoreboardHeadersAccuracy),
|
2021-10-19 03:12:33 +00:00
|
|
|
|
// See https://github.com/ppy/osu/discussions/15185
|
|
|
|
|
// RankDisplay = new BreakInfoLine<int>("Rank"),
|
2018-03-03 15:50:41 +00:00
|
|
|
|
GradeDisplay = new BreakInfoLine<ScoreRank>("Grade"),
|
2017-10-05 01:38:13 +00:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-09-20 19:33:07 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|