mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 21:37:59 +09:00
Disallow selection of non-implemented mods
This commit is contained in:
parent
28cd72a12b
commit
1c80f3e918
@ -66,6 +66,13 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
Mod modAfter = SelectedMod ?? Mods[0];
|
Mod modAfter = SelectedMod ?? Mods[0];
|
||||||
|
|
||||||
|
if (!modAfter.HasImplementation)
|
||||||
|
{
|
||||||
|
if (modAfter != modBefore)
|
||||||
|
SelectedIndex += direction;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (beforeSelected != Selected)
|
if (beforeSelected != Selected)
|
||||||
{
|
{
|
||||||
iconsContainer.RotateTo(Selected ? 5f : 0f, 300, Easing.OutElastic);
|
iconsContainer.RotateTo(Selected ? 5f : 0f, 300, Easing.OutElastic);
|
||||||
@ -195,6 +202,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
backgroundIcon.Icon = foregroundIcon.Icon;
|
backgroundIcon.Icon = foregroundIcon.Icon;
|
||||||
foregroundIcon.Icon = mod.Icon;
|
foregroundIcon.Icon = mod.Icon;
|
||||||
text.Text = mod.Name;
|
text.Text = mod.Name;
|
||||||
|
Colour = mod.HasImplementation ? Color4.White : Color4.Gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void createIcons()
|
private void createIcons()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user