mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 04:13:00 +08:00
Formatting
This commit is contained in:
parent
3a4150c6c3
commit
c02a85bc4a
@ -2,7 +2,6 @@
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Graphics.Sprites;
|
||||
@ -17,6 +16,6 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
protected override SpriteText CreateSpriteText() => new OsuSpriteText();
|
||||
|
||||
public IEnumerable<SpriteText> AddTextAwesome(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);
|
||||
public void AddIcon(FontAwesome icon, Action<SpriteText> creationParameters = null) => AddText(((char)icon).ToString(), creationParameters);
|
||||
}
|
||||
}
|
||||
|
@ -59,10 +59,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
Masking = true,
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Children = new[]
|
||||
{
|
||||
path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
|
||||
}
|
||||
Child = path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@ namespace osu.Game.Overlays.Profile
|
||||
private readonly Box colourBar;
|
||||
|
||||
private const float cover_height = 350, info_height = 150, info_width = 220, avatar_size = 110, level_position = 30, level_height = 60;
|
||||
|
||||
public ProfileHeader(User user)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
@ -414,7 +415,8 @@ namespace osu.Game.Overlays.Profile
|
||||
private void tryAddInfoRightLine(FontAwesome icon, string str)
|
||||
{
|
||||
if (string.IsNullOrEmpty(str)) return;
|
||||
infoTextRight.AddTextAwesome(icon);
|
||||
|
||||
infoTextRight.AddIcon(icon);
|
||||
infoTextRight.AddText(" " + str);
|
||||
infoTextRight.NewLine();
|
||||
}
|
||||
@ -428,10 +430,7 @@ namespace osu.Game.Overlays.Profile
|
||||
|
||||
public int DisplayCount
|
||||
{
|
||||
set
|
||||
{
|
||||
numberText.Text = value.ToString(@"#,0");
|
||||
}
|
||||
set { numberText.Text = value.ToString(@"#,0"); }
|
||||
}
|
||||
|
||||
public GradeBadge(string grade)
|
||||
|
@ -31,7 +31,6 @@ namespace osu.Game.Overlays
|
||||
private ProfileTabControl tabs;
|
||||
|
||||
public const float CONTENT_X_MARGIN = 50;
|
||||
private const float transition_length = 500;
|
||||
|
||||
public UserProfileOverlay()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user