diff --git a/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs b/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs index c9788c6361..2ddebc2437 100644 --- a/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs +++ b/osu.Game/Screens/Select/Leaderboards/LeaderboardScore.cs @@ -24,7 +24,7 @@ public class LeaderboardScore : Container, IStateful private const float corner_radius = 5; private const float edge_margin = 10; private const float background_alpha = 0.25f; - private const float index_width = 40; + private const float rank_width = 30; private readonly EdgeEffect imageShadow = new EdgeEffect { @@ -124,14 +124,12 @@ public LeaderboardScore(Score score, int rank) flag.Width = 30; flag.RelativeSizeAxes = Axes.Y; - const float rank_width = 30; - Children = new Drawable[] { new Container { RelativeSizeAxes = Axes.Y, - Width = index_width, + Width = rank_width, Children = new[] { new OsuSpriteText @@ -147,7 +145,7 @@ public LeaderboardScore(Score score, int rank) content = new Container { RelativeSizeAxes = Axes.Both, - Padding = new MarginPadding { Left = index_width, }, + Padding = new MarginPadding { Left = rank_width, }, Children = new Drawable[] { new Container @@ -235,10 +233,7 @@ public LeaderboardScore(Score score, int rank) Spacing = new Vector2(5f, 0f), Children = new Drawable[] { - scoreLabel = new GlowingSpriteText(Score.TotalScore.ToString(@"N0"), @"Venera", 23, Color4.White, OsuColour.FromHex(@"83ccfa")) - { - - }, + scoreLabel = new GlowingSpriteText(Score.TotalScore.ToString(@"N0"), @"Venera", 23, Color4.White, OsuColour.FromHex(@"83ccfa")), new Container { Size = new Vector2(40f, 20f), diff --git a/osu.Game/Users/Team.cs b/osu.Game/Users/Team.cs index 13401aa241..3772b32e83 100644 --- a/osu.Game/Users/Team.cs +++ b/osu.Game/Users/Team.cs @@ -2,7 +2,6 @@ // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Graphics.Sprites; -using osu.Framework.Graphics.Textures; using osu.Game.Graphics.UserInterface; namespace osu.Game.Users @@ -13,7 +12,7 @@ public class Team : IHasDrawableRepresentation public Sprite CreateDrawable() { - return new Sprite { }; + return new Sprite(); } } }