1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 20:07:24 +08:00
osu-lazer/osu.Game/Screens/Play/BreaksOverlay/InfoContainer.cs

50 lines
1.7 KiB
C#
Raw Normal View History

2017-09-21 03:33:07 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Screens.Play.BreaksOverlay
{
public class InfoContainer : FillFlowContainer
{
2017-09-23 21:42:18 +08:00
public PercentageInfoLine AccuracyDisplay;
public InfoLine<int> RankDisplay;
public InfoLine<Grade> GradeDisplay;
2017-09-21 03:33:07 +08:00
public InfoContainer()
{
AutoSizeAxes = Axes.Both;
Alpha = 0;
Direction = FillDirection.Vertical;
Spacing = new Vector2(5);
Children = new Drawable[]
{
new OsuSpriteText
{
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Text = @"current progress".ToUpper(),
TextSize = 15,
Font = "Exo2.0-Black",
},
2017-09-23 21:42:18 +08:00
new FillFlowContainer
2017-09-21 03:33:07 +08:00
{
AutoSizeAxes = Axes.Both,
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,
Direction = FillDirection.Vertical,
2017-09-23 21:42:18 +08:00
Children = new Drawable[]
2017-09-21 03:33:07 +08:00
{
2017-09-23 21:42:18 +08:00
AccuracyDisplay = new PercentageInfoLine(@"Accuracy"),
RankDisplay = new InfoLine<int>(@"Rank", @"#"),
GradeDisplay = new InfoLine<Grade>(@"Grade"),
2017-09-21 03:33:07 +08:00
},
}
};
}
}
}