1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Forward ValueChangedEvent instead

This commit is contained in:
Dean Herbert 2019-09-13 16:03:44 +09:00
parent 5a72083c13
commit 7818ecd71c

View File

@ -73,16 +73,16 @@ namespace osu.Game.Overlays.Rankings
protected override void LoadComplete()
{
Scope.BindValueChanged(scope => onScopeChanged(scope.NewValue), true);
Scope.BindValueChanged(onScopeChanged, true);
Country.BindValueChanged(onCountryChanged, true);
base.LoadComplete();
}
private void onScopeChanged(RankingsScope scope)
private void onScopeChanged(ValueChangedEvent<RankingsScope> scope)
{
scopeText.Text = scope.ToString();
scopeText.Text = scope.NewValue.ToString();
if (scope != RankingsScope.Performance)
if (scope.NewValue != RankingsScope.Performance)
Country.Value = null;
}