1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 05:22:54 +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, Origin = Anchor.BottomLeft,
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Height = 0.5f, Height = 0.5f,
Child = userModsSelectOverlay = new SoloModSelectOverlay Child = userModsSelectOverlay = new UserModSelectOverlay
{ {
SelectedMods = { BindTarget = UserMods }, SelectedMods = { BindTarget = UserMods },
IsValidMod = _ => false IsValidMod = _ => false
@ -358,5 +358,10 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
if (client != null) if (client != null)
client.LoadRequested -= onLoadRequested; client.LoadRequested -= onLoadRequested;
} }
private class UserModSelectOverlay : ModSelectOverlay
{
protected override bool AllowCustomisation => false;
}
} }
} }