mirror of
https://github.com/ppy/osu.git
synced 2025-02-02 03:22:55 +08:00
Always hide unimplemented mods on mod select screen
This commit is contained in:
parent
f91ee4b042
commit
e3641213e1
@ -203,7 +203,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
private void updateAvailableMods()
|
private void updateAvailableMods()
|
||||||
{
|
{
|
||||||
foreach (var column in columnFlow.Columns)
|
foreach (var column in columnFlow.Columns)
|
||||||
column.Filter = isValidMod;
|
column.Filter = m => m.HasImplementation && isValidMod.Invoke(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCustomisation(ValueChangedEvent<IReadOnlyList<Mod>> valueChangedEvent)
|
private void updateCustomisation(ValueChangedEvent<IReadOnlyList<Mod>> valueChangedEvent)
|
||||||
|
@ -16,7 +16,7 @@ namespace osu.Game.Screens.OnlinePlay
|
|||||||
public new Func<Mod, bool> IsValidMod
|
public new Func<Mod, bool> IsValidMod
|
||||||
{
|
{
|
||||||
get => base.IsValidMod;
|
get => base.IsValidMod;
|
||||||
set => base.IsValidMod = m => m.HasImplementation && m.UserPlayable && value.Invoke(m);
|
set => base.IsValidMod = m => m.UserPlayable && value.Invoke(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FreeModSelectScreen()
|
public FreeModSelectScreen()
|
||||||
|
Loading…
Reference in New Issue
Block a user