This commit is contained in:
EVAST9919 2017-11-11 07:07:41 +03:00
parent 5bf756c3c6
commit 944bdc1c25
3 changed files with 12 additions and 10 deletions

View File

@ -21,13 +21,14 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
public class DrawableScore : Container
{
private const int fade_duration = 100;
private const int height = 30;
private const float height = 30;
private readonly Box background;
private readonly ScoreModsContainer modsContainer;
public DrawableScore(int index, OnlineScore score)
{
ScoreModsContainer modsContainer;
RelativeSizeAxes = Axes.X;
Height = height;
CornerRadius = 3;
@ -88,7 +89,7 @@ public DrawableScore(int index, OnlineScore score)
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreRight,
Text = score.TotalScore.ToString(),
Text = $@"{score.TotalScore}",
Font = @"Exo2.0-MediumItalic",
RelativePositionAxes = Axes.X,
X = 0.7f

View File

@ -23,10 +23,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
{
public class DrawableTopScore : Container
{
private const int fade_duration = 100;
private const int height = 200;
private const int avatar_size = 80;
private const int margin = 10;
private const float fade_duration = 100;
private const float height = 200;
private const float avatar_size = 80;
private const float margin = 10;
private readonly Box background;
private readonly Box bottomBackground;
@ -179,10 +179,10 @@ private void setScore()
{
avatar.User = username.User = score.User;
flag.FlagName = score.User.Country?.FlagName;
date.Text = $"achieved {score.Date:MMM d, yyyy}";
date.Text = $@"achieved {score.Date:MMM d, yyyy}";
rank.UpdateRank(score.Rank);
totalScore.Value = score.TotalScore.ToString();
totalScore.Value = $@"{score.TotalScore}";
accuracy.Value = $@"{score.Accuracy:P2}";
statistics.Value = $"{score.Statistics["300"]}/{score.Statistics["100"]}/{score.Statistics["50"]}";

View File

@ -27,7 +27,6 @@ public class BeatmapSetOverlay : WaveOverlayContainer
private readonly Header header;
private readonly Info info;
private readonly ScoresContainer scores;
private APIAccess api;
private RulesetStore rulesets;
@ -37,6 +36,8 @@ public class BeatmapSetOverlay : WaveOverlayContainer
public BeatmapSetOverlay()
{
ScoresContainer scores;
FirstWaveColour = OsuColour.Gray(0.4f);
SecondWaveColour = OsuColour.Gray(0.3f);
ThirdWaveColour = OsuColour.Gray(0.2f);