This commit is contained in:
DrabWeb
2017-03-17 18:21:35 -03:00
3 changed files with 37 additions and 34 deletions

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Select.Leaderboards
private Container flagBadgeContainer;
private FillFlowContainer<ScoreModIcon> modsContainer;
public readonly int Index;
public readonly int Rank;
public readonly Score Score;
private Visibility state;
@ -112,10 +112,10 @@ namespace osu.Game.Screens.Select.Leaderboards
base.OnHoverLost(state);
}
public LeaderboardScore(Score score, int i)
public LeaderboardScore(Score score, int rank)
{
Score = score;
Index = i;
Rank = rank;
RelativeSizeAxes = Axes.X;
Height = height;
@ -124,6 +124,8 @@ namespace osu.Game.Screens.Select.Leaderboards
flag.Width = 30;
flag.RelativeSizeAxes = Axes.Y;
const float rank_width = 30;
Children = new Drawable[]
{
new Container
@ -138,7 +140,7 @@ namespace osu.Game.Screens.Select.Leaderboards
Origin = Anchor.CentreLeft,
Font = @"Exo2.0-MediumItalic",
TextSize = 22,
Text = Index.ToString(),
Text = Rank.ToString(),
},
},
},