1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 19:26:43 +08:00
osu-lazer/osu.Game/Screens/Play/Break/BreakInfo.cs

53 lines
1.9 KiB
C#
Raw Normal View History

2018-01-05 19:21:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-09-21 03:33:07 +08:00
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Sprites;
using osu.Game.Rulesets.Scoring;
using OpenTK;
2017-09-21 03:33:07 +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;
public BreakInfoLine<int> RankDisplay;
public BreakInfoLine<ScoreRank> GradeDisplay;
2017-10-05 09:38:13 +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,
Text = "current progress".ToUpper(),
TextSize = 15,
Font = "Exo2.0-Black",
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("Accuracy"),
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
};
}
}
}