mirror of https://github.com/ppy/osu
Fix username not displaying correctly in overlay
This commit is contained in:
parent
f47ac35522
commit
870d843fff
|
@ -115,7 +115,7 @@ public ProfileHeader(User user)
|
|||
Y = -48,
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OsuSpriteText
|
||||
usernameText = new OsuSpriteText
|
||||
{
|
||||
Text = user.Username,
|
||||
Font = @"Exo2.0-RegularItalic",
|
||||
|
@ -317,6 +317,8 @@ private void load(TextureStore textures)
|
|||
levelBadge.Texture = textures.Get(@"Profile/levelbadge");
|
||||
}
|
||||
|
||||
private readonly OsuSpriteText usernameText;
|
||||
|
||||
private User user;
|
||||
|
||||
public User User
|
||||
|
@ -344,6 +346,8 @@ private void loadUser()
|
|||
if (user.IsSupporter)
|
||||
SupporterTag.Show();
|
||||
|
||||
usernameText.Text = user.Username;
|
||||
|
||||
if (!string.IsNullOrEmpty(user.Colour))
|
||||
{
|
||||
colourBar.Colour = OsuColour.FromHex(user.Colour);
|
||||
|
|
Loading…
Reference in New Issue