mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 01:03:21 +08:00
Handle mods change
This commit is contained in:
parent
2cfd54ca0d
commit
31191dadf1
@ -141,6 +141,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
base.LoadComplete();
|
||||
scope.BindValueChanged(_ => getScores());
|
||||
|
||||
modSelector.SelectedMods.ItemsAdded += _ => getScores();
|
||||
modSelector.SelectedMods.ItemsRemoved += _ => getScores();
|
||||
|
||||
Beatmap.BindValueChanged(onBeatmapChanged, true);
|
||||
}
|
||||
|
||||
@ -167,7 +171,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
return;
|
||||
|
||||
loadingAnimation.Show();
|
||||
getScoresRequest = new GetScoresRequest(Beatmap.Value, Beatmap.Value.Ruleset, scope.Value);
|
||||
getScoresRequest = new GetScoresRequest(Beatmap.Value, Beatmap.Value.Ruleset, scope.Value, modSelector.SelectedMods);
|
||||
getScoresRequest.Success += scores =>
|
||||
{
|
||||
loadingAnimation.Hide();
|
||||
|
Loading…
Reference in New Issue
Block a user