1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 22:47:26 +08:00
osu-lazer/osu.Game/Screens/Play/Break/BreakInfo.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
2.1 KiB
C#
Raw Normal View History

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