mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:12:56 +08:00
Make checkbox also respond to all mods selected
This commit is contained in:
parent
f166c4c414
commit
4cf52077b6
@ -57,12 +57,8 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
|||||||
{
|
{
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
// If any of the buttons aren't selected, deselect the checkbox.
|
var validButtons = ButtonsContainer.OfType<ModButton>().Where(b => b.Mod.HasImplementation);
|
||||||
foreach (var button in ButtonsContainer.OfType<ModButton>())
|
checkbox.Current.Value = validButtons.All(b => b.Selected);
|
||||||
{
|
|
||||||
if (button.Mods.Any(m => m.HasImplementation) && !button.Selected)
|
|
||||||
checkbox.Current.Value = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user