diff --git a/osu.Game/Overlays/BeatmapSet/Scores/DrawableScore.cs b/osu.Game/Overlays/BeatmapSet/Scores/DrawableScore.cs index ae40b4205d..8aba88c639 100644 --- a/osu.Game/Overlays/BeatmapSet/Scores/DrawableScore.cs +++ b/osu.Game/Overlays/BeatmapSet/Scores/DrawableScore.cs @@ -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 @@ namespace osu.Game.Overlays.BeatmapSet.Scores { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreRight, - Text = score.TotalScore.ToString(), + Text = $@"{score.TotalScore}", Font = @"Exo2.0-MediumItalic", RelativePositionAxes = Axes.X, X = 0.7f diff --git a/osu.Game/Overlays/BeatmapSet/Scores/DrawableTopScore.cs b/osu.Game/Overlays/BeatmapSet/Scores/DrawableTopScore.cs index f9ad72bd2c..665a563e6e 100644 --- a/osu.Game/Overlays/BeatmapSet/Scores/DrawableTopScore.cs +++ b/osu.Game/Overlays/BeatmapSet/Scores/DrawableTopScore.cs @@ -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 @@ namespace osu.Game.Overlays.BeatmapSet.Scores { 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"]}"; diff --git a/osu.Game/Overlays/BeatmapSetOverlay.cs b/osu.Game/Overlays/BeatmapSetOverlay.cs index 7ce7d86cd5..db01d02c79 100644 --- a/osu.Game/Overlays/BeatmapSetOverlay.cs +++ b/osu.Game/Overlays/BeatmapSetOverlay.cs @@ -27,7 +27,6 @@ namespace osu.Game.Overlays private readonly Header header; private readonly Info info; - private readonly ScoresContainer scores; private APIAccess api; private RulesetStore rulesets; @@ -37,6 +36,8 @@ namespace osu.Game.Overlays public BeatmapSetOverlay() { + ScoresContainer scores; + FirstWaveColour = OsuColour.Gray(0.4f); SecondWaveColour = OsuColour.Gray(0.3f); ThirdWaveColour = OsuColour.Gray(0.2f);