Convert BadgeDisplay to use bindable

This commit is contained in:
Dean Herbert
2019-05-17 11:43:36 +09:00
parent e94b9feebd
commit e606c73329
4 changed files with 36 additions and 62 deletions

View File

@ -22,9 +22,7 @@ namespace osu.Game.Overlays.Changelog
private const float badge_width = 100;
private const float transition_duration = 100;
public delegate void SelectedHandler(StreamBadge source, EventArgs args);
public event SelectedHandler Selected;
public event Action Selected;
private bool isActivated;
@ -90,7 +88,7 @@ namespace osu.Game.Overlays.Changelog
this.FadeIn(transition_duration);
lineBadge.Uncollapse();
if (!withoutFiringUpdates)
Selected?.Invoke(this, EventArgs.Empty);
Selected?.Invoke();
}
public void Deactivate()