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

@ -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,