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 @@ public class LeaderboardScore : Container, IStateful<Visibility>
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),

View File

@ -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<Sprite>
public Sprite CreateDrawable()
{
return new Sprite { };
return new Sprite();
}
}
}