mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 00:02:54 +08:00
Clear freemods when ruleset is changed
This commit is contained in:
parent
4194c9308e
commit
0bce9d6833
@ -60,6 +60,13 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
|
||||
freeMods.Value = Playlist.FirstOrDefault()?.AllowedMods.Select(m => m.CreateCopy()).ToArray() ?? Array.Empty<Mod>();
|
||||
FooterPanels.Add(freeModSelectOverlay);
|
||||
|
||||
Ruleset.BindValueChanged(onRulesetChanged);
|
||||
}
|
||||
|
||||
private void onRulesetChanged(ValueChangedEvent<RulesetInfo> ruleset)
|
||||
{
|
||||
freeMods.Value = Array.Empty<Mod>();
|
||||
}
|
||||
|
||||
protected sealed override bool OnStart()
|
||||
|
Loading…
Reference in New Issue
Block a user