mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Only open mod customisation panel on explicit selection of single mod
This commit is contained in:
@ -37,6 +37,8 @@ namespace osu.Game.Overlays.Mods
|
||||
Shear = new Vector2(-ShearedOverlayContainer.SHEAR, 0),
|
||||
Scale = new Vector2(HEIGHT / ModSwitchSmall.DEFAULT_SIZE)
|
||||
};
|
||||
|
||||
Action = select;
|
||||
}
|
||||
|
||||
public ModPanel(Mod mod)
|
||||
@ -57,6 +59,20 @@ namespace osu.Game.Overlays.Mods
|
||||
Filtered.BindValueChanged(_ => updateFilterState(), true);
|
||||
}
|
||||
|
||||
private void select()
|
||||
{
|
||||
if (!Active.Value)
|
||||
{
|
||||
modState.RequiresConfiguration = Mod.RequiresConfiguration;
|
||||
Active.Value = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
modState.RequiresConfiguration = false;
|
||||
Active.Value = false;
|
||||
}
|
||||
}
|
||||
|
||||
#region Filtering support
|
||||
|
||||
private void updateFilterState()
|
||||
|
Reference in New Issue
Block a user