1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 15:33:05 +08:00
This commit is contained in:
Andrei Zavatski 2019-08-01 23:04:18 +03:00
parent e66a3494b9
commit 5547592768
2 changed files with 4 additions and 3 deletions

View File

@ -40,7 +40,7 @@ namespace osu.Game.Tests.Visual.Online
AddStep("four usernames", () => user.Value = new User
{
PreviousUsernames = new[] { "ihavenoidea", "howcani", "makethistext" , "anylonger" },
PreviousUsernames = new[] { "ihavenoidea", "howcani", "makethistext", "anylonger" },
});
AddStep("no username", () => user.Value = new User

View File

@ -25,11 +25,12 @@ namespace osu.Game.Overlays.Profile.Header
public readonly Bindable<User> User = new Bindable<User>();
private readonly HoverIconContainer hoverIcon;
private readonly ContentContainer contentContainer;
public PreviousUsernamesContainer()
{
HoverIconContainer hoverIcon;
AutoSizeAxes = Axes.Y;
Width = width;
Children = new Drawable[]
@ -56,7 +57,7 @@ namespace osu.Game.Overlays.Profile.Header
if (usernames.Any())
{
var amount = usernames.Count();
var amount = usernames.Length;
for (int i = 0; i < amount; i++)
{