1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 16:52:54 +08:00

User property instead of weirdly named method

This commit is contained in:
Dean Herbert 2017-07-17 13:39:29 +09:00
parent f322c264a0
commit a63124c935
2 changed files with 18 additions and 2 deletions

View File

@ -296,7 +296,23 @@ namespace osu.Game.Overlays.Profile
levelBadge.Texture = textures.Get(@"Profile/levelbadge");
}
public void FillFullData(User user)
private User user;
public User User
{
get
{
return user;
}
set
{
user = value;
loadUser();
}
}
private void loadUser()
{
coverContainer.Add(new AsyncLoadWrapper(new UserCoverBackground(user)
{

View File

@ -167,7 +167,7 @@ namespace osu.Game.Overlays
private void fillData(User user)
{
header.FillFullData(user);
header.User = user;
for (int i = 0; i < user.ProfileOrder.Length; i++)
{