mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 21:23:04 +08:00
Small logic adjustments
This commit is contained in:
parent
32cc7b3d4d
commit
0578f91a76
@ -161,6 +161,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
scope.BindValueChanged(_ => getScores());
|
scope.BindValueChanged(_ => getScores());
|
||||||
|
ruleset.BindValueChanged(_ => getScores());
|
||||||
|
|
||||||
modSelector.SelectedMods.ItemsAdded += _ => getScores();
|
modSelector.SelectedMods.ItemsAdded += _ => getScores();
|
||||||
modSelector.SelectedMods.ItemsRemoved += _ => getScores();
|
modSelector.SelectedMods.ItemsRemoved += _ => getScores();
|
||||||
@ -173,12 +174,12 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
{
|
{
|
||||||
var beatmapRuleset = beatmap.NewValue?.Ruleset;
|
var beatmapRuleset = beatmap.NewValue?.Ruleset;
|
||||||
|
|
||||||
if (modSelector.Ruleset.Value?.Equals(beatmapRuleset) ?? false)
|
if (ruleset.Value?.Equals(beatmapRuleset) ?? false)
|
||||||
modSelector.DeselectAll();
|
modSelector.DeselectAll();
|
||||||
else
|
else
|
||||||
ruleset.Value = beatmapRuleset;
|
ruleset.Value = beatmapRuleset;
|
||||||
|
|
||||||
getScores();
|
scope.Value = BeatmapLeaderboardScope.Global;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onUserChanged(ValueChangedEvent<User> user)
|
private void onUserChanged(ValueChangedEvent<User> user)
|
||||||
|
Loading…
Reference in New Issue
Block a user