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:
parent
f322c264a0
commit
a63124c935
@ -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)
|
||||
{
|
||||
|
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user