Add a red tint on mods incompatible with the current selection

This commit is contained in:
Henry Lin
2021-08-22 11:01:17 +08:00
parent ef6faf04be
commit e213562b2a
2 changed files with 38 additions and 2 deletions

View File

@ -127,7 +127,7 @@ namespace osu.Game.Overlays.Mods
var allMods = ruleset.Value.CreateInstance().GetAllMods();
incompatibleMods.Value = allMods.Where(m => incompatibleTypes.Any(t => t.IsInstanceOfType(m))).ToList();
incompatibleMods.Value = allMods.Where(m => m.GetType() != mod.GetType() && incompatibleTypes.Any(t => t.IsInstanceOfType(m))).ToList();
if (!incompatibleMods.Value.Any())
{