From 82c02fa1fcdd3572a3f8d765ae0cf15e9ba1281c Mon Sep 17 00:00:00 2001 From: DrabWeb Date: Fri, 17 Mar 2017 18:29:55 -0300 Subject: [PATCH] Formatting --- .../Screens/Select/Leaderboards/LeaderboardScore.cs | 13 ++++--------- osu.Game/Users/Team.cs | 3 +-- 2 files changed, 5 insertions(+), 11 deletions(-) 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 @@ namespace osu.Game.Screens.Select.Leaderboards 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 @@ namespace osu.Game.Screens.Select.Leaderboards 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 @@ namespace osu.Game.Screens.Select.Leaderboards 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 @@ namespace osu.Game.Screens.Select.Leaderboards 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 @@ namespace osu.Game.Users public Sprite CreateDrawable() { - return new Sprite { }; + return new Sprite(); } } }