Update with framework bindable changes

This commit is contained in:
smoogipoo
2019-02-21 18:56:34 +09:00
parent d637b184e4
commit bca347427f
195 changed files with 567 additions and 555 deletions

View File

@ -63,10 +63,10 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
}
};
this.user.ValueChanged += newUser =>
this.user.ValueChanged += e =>
{
total.Count = newUser?.Kudosu.Total ?? 0;
avaliable.Count = newUser?.Kudosu.Available ?? 0;
total.Count = e.NewValue?.Kudosu.Total ?? 0;
avaliable.Count = e.NewValue?.Kudosu.Available ?? 0;
};
}

View File

@ -93,13 +93,13 @@ namespace osu.Game.Overlays.Profile.Sections
User.TriggerChange();
}
private void onUserChanged(User newUser)
private void onUserChanged(ValueChangedEvent<User> e)
{
VisiblePages = 0;
ItemsContainer.Clear();
ShowMoreButton.Hide();
if (newUser != null)
if (e.NewValue != null)
ShowMore();
}