Rank graph improvements

This commit is contained in:
EVAST9919
2017-11-21 10:15:16 +03:00
committed by Dean Herbert
parent be526d68e8
commit f3c93c894b
2 changed files with 88 additions and 50 deletions

View File

@ -27,6 +27,7 @@ namespace osu.Game.Overlays.Profile
private readonly OsuTextFlowContainer infoTextLeft;
private readonly LinkFlowContainer infoTextRight;
private readonly FillFlowContainer<SpriteText> scoreText, scoreNumberText;
protected readonly RankChart rankGraph;
private readonly Container coverContainer, chartContainer, supporterTag;
private readonly Sprite levelBadge;
@ -285,6 +286,10 @@ namespace osu.Game.Overlays.Profile
{
Colour = Color4.Black.Opacity(0.25f),
RelativeSizeAxes = Axes.Both
},
rankGraph = new RankChart
{
RelativeSizeAxes = Axes.Both
}
}
}
@ -303,11 +308,7 @@ namespace osu.Game.Overlays.Profile
public User User
{
get
{
return user;
}
get { return user; }
set
{
user = value;
@ -420,7 +421,7 @@ namespace osu.Game.Overlays.Profile
gradeSPlus.DisplayCount = 0;
gradeSSPlus.DisplayCount = 0;
chartContainer.Add(new RankChart(user) { RelativeSizeAxes = Axes.Both });
rankGraph.Redraw(user);
}
}