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:
parent
5a72083c13
commit
7818ecd71c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user