2021-02-02 19:58:31 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2021-02-02 20:06:32 +08:00
|
|
|
using osu.Game.Rulesets.Mods;
|
|
|
|
|
2021-02-02 19:58:31 +08:00
|
|
|
namespace osu.Game.Overlays.Mods
|
|
|
|
{
|
2021-02-05 15:42:35 +08:00
|
|
|
public class LocalPlayerModSelectOverlay : ModSelectOverlay
|
2021-02-02 19:58:31 +08:00
|
|
|
{
|
2021-02-02 20:06:32 +08:00
|
|
|
protected override void OnModSelected(Mod mod)
|
|
|
|
{
|
|
|
|
base.OnModSelected(mod);
|
|
|
|
|
|
|
|
foreach (var section in ModSectionsContainer.Children)
|
|
|
|
section.DeselectTypes(mod.IncompatibleMods, true);
|
|
|
|
}
|
2021-02-02 19:58:31 +08:00
|
|
|
}
|
|
|
|
}
|