mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Move incompatibility icon logic to local player mod select overlays
This commit is contained in:
@ -51,14 +51,14 @@ namespace osu.Game.Overlays.Mods
|
||||
if (m == null)
|
||||
return new ModButtonEmpty();
|
||||
|
||||
return new ModButton(m)
|
||||
return CreateModButton(m).With(b =>
|
||||
{
|
||||
SelectionChanged = mod =>
|
||||
b.SelectionChanged = mod =>
|
||||
{
|
||||
ModButtonStateChanged(mod);
|
||||
Action?.Invoke(mod);
|
||||
},
|
||||
};
|
||||
};
|
||||
});
|
||||
}).ToArray();
|
||||
|
||||
modsLoadCts?.Cancel();
|
||||
@ -247,6 +247,8 @@ namespace osu.Game.Overlays.Mods
|
||||
Text = text
|
||||
};
|
||||
|
||||
protected virtual ModButton CreateModButton(Mod mod) => new ModButton(mod);
|
||||
|
||||
/// <summary>
|
||||
/// Play out all remaining animations immediately to leave mods in a good (final) state.
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user