Formatting

This commit is contained in:
DrabWeb 2017-03-17 18:29:55 -03:00
parent 4aea06be22
commit 82c02fa1fc
2 changed files with 5 additions and 11 deletions

View File

@ -24,7 +24,7 @@ namespace osu.Game.Screens.Select.Leaderboards
private const float corner_radius = 5; private const float corner_radius = 5;
private const float edge_margin = 10; private const float edge_margin = 10;
private const float background_alpha = 0.25f; 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 private readonly EdgeEffect imageShadow = new EdgeEffect
{ {
@ -124,14 +124,12 @@ namespace osu.Game.Screens.Select.Leaderboards
flag.Width = 30; flag.Width = 30;
flag.RelativeSizeAxes = Axes.Y; flag.RelativeSizeAxes = Axes.Y;
const float rank_width = 30;
Children = new Drawable[] Children = new Drawable[]
{ {
new Container new Container
{ {
RelativeSizeAxes = Axes.Y, RelativeSizeAxes = Axes.Y,
Width = index_width, Width = rank_width,
Children = new[] Children = new[]
{ {
new OsuSpriteText new OsuSpriteText
@ -147,7 +145,7 @@ namespace osu.Game.Screens.Select.Leaderboards
content = new Container content = new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Padding = new MarginPadding { Left = index_width, }, Padding = new MarginPadding { Left = rank_width, },
Children = new Drawable[] Children = new Drawable[]
{ {
new Container new Container
@ -235,10 +233,7 @@ namespace osu.Game.Screens.Select.Leaderboards
Spacing = new Vector2(5f, 0f), Spacing = new Vector2(5f, 0f),
Children = new Drawable[] 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 new Container
{ {
Size = new Vector2(40f, 20f), Size = new Vector2(40f, 20f),

View File

@ -2,7 +2,6 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
namespace osu.Game.Users namespace osu.Game.Users
@ -13,7 +12,7 @@ namespace osu.Game.Users
public Sprite CreateDrawable() public Sprite CreateDrawable()
{ {
return new Sprite { }; return new Sprite();
} }
} }
} }