1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 14:12:55 +08:00

Disallow local user mod customisation

This commit is contained in:
smoogipoo 2021-02-01 18:54:47 +09:00
parent 89a42d60fb
commit ee92ec0a5c

View File

@ -216,7 +216,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
Origin = Anchor.BottomLeft,
RelativeSizeAxes = Axes.Both,
Height = 0.5f,
Child = userModsSelectOverlay = new SoloModSelectOverlay
Child = userModsSelectOverlay = new UserModSelectOverlay
{
SelectedMods = { BindTarget = UserMods },
IsValidMod = _ => false
@ -358,5 +358,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
if (client != null)
client.LoadRequested -= onLoadRequested;
}
private class UserModSelectOverlay : ModSelectOverlay
{
protected override bool AllowCustomisation => false;
}
}
}