mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 10:12:54 +08:00
Use existing enum instead of my own
This commit is contained in:
parent
2da3ea00b6
commit
a69bef8ec0
@ -5,6 +5,7 @@ using OpenTK;
|
|||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
|
using osu.Game.Rulesets.Scoring;
|
||||||
|
|
||||||
namespace osu.Game.Screens.Play.BreaksOverlay
|
namespace osu.Game.Screens.Play.BreaksOverlay
|
||||||
{
|
{
|
||||||
@ -12,7 +13,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
{
|
{
|
||||||
public PercentageInfoLine AccuracyDisplay;
|
public PercentageInfoLine AccuracyDisplay;
|
||||||
public InfoLine<int> RankDisplay;
|
public InfoLine<int> RankDisplay;
|
||||||
public InfoLine<Grade> GradeDisplay;
|
public InfoLine<ScoreRank> GradeDisplay;
|
||||||
|
|
||||||
public InfoContainer()
|
public InfoContainer()
|
||||||
{
|
{
|
||||||
@ -40,7 +41,7 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
{
|
{
|
||||||
AccuracyDisplay = new PercentageInfoLine(@"Accuracy"),
|
AccuracyDisplay = new PercentageInfoLine(@"Accuracy"),
|
||||||
RankDisplay = new InfoLine<int>(@"Rank", @"#"),
|
RankDisplay = new InfoLine<int>(@"Rank", @"#"),
|
||||||
GradeDisplay = new InfoLine<Grade>(@"Grade"),
|
GradeDisplay = new InfoLine<ScoreRank>(@"Grade"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -74,16 +74,4 @@ namespace osu.Game.Screens.Play.BreaksOverlay
|
|||||||
|
|
||||||
protected override string Format(double count) => $@"{count:P2}";
|
protected override string Format(double count) => $@"{count:P2}";
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum Grade
|
|
||||||
{
|
|
||||||
SSplus,
|
|
||||||
SS,
|
|
||||||
Splus,
|
|
||||||
S,
|
|
||||||
A,
|
|
||||||
B,
|
|
||||||
C,
|
|
||||||
F
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user