mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
User property instead of weirdly named method
This commit is contained in:
@ -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++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user