ScoreInfo scoreInfo -> ScoreInfo score

This commit is contained in:
Dean Herbert
2018-11-30 15:18:52 +09:00
parent 271dcded3c
commit 831cd3ed59
25 changed files with 135 additions and 135 deletions

View File

@ -13,8 +13,8 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
private readonly double? weight;
public DrawablePerformanceScore(ScoreInfo scoreInfo, double? weight = null)
: base(scoreInfo)
public DrawablePerformanceScore(ScoreInfo score, double? weight = null)
: base(score)
{
this.weight = weight;
}
@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
[BackgroundDependencyLoader]
private void load(OsuColour colour)
{
double pp = ScoreInfo.PP ?? 0;
double pp = Score.PP ?? 0;
RightFlowContainer.Add(new OsuSpriteText
{
Text = $"{pp:0}pp",

View File

@ -16,11 +16,11 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
public abstract class DrawableProfileScore : DrawableProfileRow
{
private readonly ScoreModsContainer modsContainer;
protected readonly ScoreInfo ScoreInfo;
protected readonly ScoreInfo Score;
protected DrawableProfileScore(ScoreInfo scoreInfo)
protected DrawableProfileScore(ScoreInfo score)
{
ScoreInfo = scoreInfo;
Score = score;
RelativeSizeAxes = Axes.X;
Height = 60;
@ -42,7 +42,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
var text = new OsuSpriteText
{
Text = $"accuracy: {ScoreInfo.Accuracy:P2}",
Text = $"accuracy: {Score.Accuracy:P2}",
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Colour = colour.GrayA,
@ -53,14 +53,14 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
RightFlowContainer.Add(text);
RightFlowContainer.SetLayoutPosition(text, 1);
LeftFlowContainer.Add(new BeatmapMetadataContainer(ScoreInfo.BeatmapInfo));
LeftFlowContainer.Add(new DrawableDate(ScoreInfo.Date));
LeftFlowContainer.Add(new BeatmapMetadataContainer(Score.BeatmapInfo));
LeftFlowContainer.Add(new DrawableDate(Score.Date));
foreach (Mod mod in ScoreInfo.Mods)
foreach (Mod mod in Score.Mods)
modsContainer.Add(new ModIcon(mod) { Scale = new Vector2(0.5f) });
}
protected override Drawable CreateLeftVisual() => new DrawableRank(ScoreInfo.Rank)
protected override Drawable CreateLeftVisual() => new DrawableRank(Score.Rank)
{
RelativeSizeAxes = Axes.Y,
Width = 60,

View File

@ -10,8 +10,8 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
public class DrawableTotalScore : DrawableProfileScore
{
public DrawableTotalScore(ScoreInfo scoreInfo)
: base(scoreInfo)
public DrawableTotalScore(ScoreInfo score)
: base(score)
{
}
@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Profile.Sections.Ranks
{
RightFlowContainer.Add(new OsuSpriteText
{
Text = ScoreInfo.TotalScore.ToString("#,###"),
Text = Score.TotalScore.ToString("#,###"),
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
TextSize = 18,