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

@ -45,13 +45,13 @@ namespace osu.Game.Overlays.Toolbar
if (notificationOverlay != null)
NotificationCount.BindTo(notificationOverlay.UnreadCount);
NotificationCount.ValueChanged += count =>
NotificationCount.ValueChanged += e =>
{
if (count == 0)
if (e.NewValue == 0)
countDisplay.FadeOut(200, Easing.OutQuint);
else
{
countDisplay.Count = count;
countDisplay.Count = e.NewValue;
countDisplay.FadeIn(200, Easing.OutQuint);
}
};