mirror of
https://github.com/osukey/osukey.git
synced 2025-06-05 21:07:18 +09: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
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
@ -17,6 +16,6 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
protected override SpriteText CreateSpriteText() => new OsuSpriteText();
|
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,
|
Masking = true,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Children = new[]
|
Child = path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
|
||||||
{
|
|
||||||
path = new Path { RelativeSizeAxes = Axes.Both, PathWidth = 1 }
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
private readonly Box colourBar;
|
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;
|
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)
|
public ProfileHeader(User user)
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X;
|
RelativeSizeAxes = Axes.X;
|
||||||
@ -414,7 +415,8 @@ namespace osu.Game.Overlays.Profile
|
|||||||
private void tryAddInfoRightLine(FontAwesome icon, string str)
|
private void tryAddInfoRightLine(FontAwesome icon, string str)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(str)) return;
|
if (string.IsNullOrEmpty(str)) return;
|
||||||
infoTextRight.AddTextAwesome(icon);
|
|
||||||
|
infoTextRight.AddIcon(icon);
|
||||||
infoTextRight.AddText(" " + str);
|
infoTextRight.AddText(" " + str);
|
||||||
infoTextRight.NewLine();
|
infoTextRight.NewLine();
|
||||||
}
|
}
|
||||||
@ -428,10 +430,7 @@ namespace osu.Game.Overlays.Profile
|
|||||||
|
|
||||||
public int DisplayCount
|
public int DisplayCount
|
||||||
{
|
{
|
||||||
set
|
set { numberText.Text = value.ToString(@"#,0"); }
|
||||||
{
|
|
||||||
numberText.Text = value.ToString(@"#,0");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public GradeBadge(string grade)
|
public GradeBadge(string grade)
|
||||||
|
@ -31,7 +31,6 @@ namespace osu.Game.Overlays
|
|||||||
private ProfileTabControl tabs;
|
private ProfileTabControl tabs;
|
||||||
|
|
||||||
public const float CONTENT_X_MARGIN = 50;
|
public const float CONTENT_X_MARGIN = 50;
|
||||||
private const float transition_length = 500;
|
|
||||||
|
|
||||||
public UserProfileOverlay()
|
public UserProfileOverlay()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user