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;
|
2017-10-02 10:56:38 +08:00
|
|
|
|
using osu.Game.Rulesets.Scoring;
|
2018-03-03 23:50:41 +08:00
|
|
|
|
using OpenTK;
|
2017-09-21 03:33:07 +08:00
|
|
|
|
|
2018-03-03 23:50:41 +08:00
|
|
|
|
namespace osu.Game.Screens.Play.Break
|
2017-09-21 03:33:07 +08:00
|
|
|
|
{
|
2018-03-03 23:50:41 +08:00
|
|
|
|
public class BreakInfo : Container
|
2017-09-21 03:33:07 +08:00
|
|
|
|
{
|
2018-03-03 23:50:41 +08:00
|
|
|
|
public PercentageBreakInfoLine AccuracyDisplay;
|
|
|
|
|
public BreakInfoLine<int> RankDisplay;
|
|
|
|
|
public BreakInfoLine<ScoreRank> GradeDisplay;
|
2017-10-05 09:38:13 +08:00
|
|
|
|
|
2018-03-03 23:50:41 +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[]
|
|
|
|
|
{
|
2018-03-03 23:50:41 +08:00
|
|
|
|
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
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|