mirror of
https://github.com/ppy/osu
synced 2025-01-03 04:42:10 +00:00
Difficulty Adjust mod customisation menu opens automatically now
This commit is contained in:
parent
fc331e7752
commit
41295bc27c
@ -474,6 +474,7 @@ namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
if (State.Value == Visibility.Visible) sampleOn?.Play();
|
||||
DeselectTypes(selectedMod.IncompatibleMods, true);
|
||||
if (selectedMod.RequiresConfiguration) ModSettingsContainer.Alpha = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -60,6 +60,12 @@ namespace osu.Game.Rulesets.Mods
|
||||
[JsonIgnore]
|
||||
public virtual bool Ranked => false;
|
||||
|
||||
/// <summary>
|
||||
/// Returns true if this mod requires configuration. If true, opens mod customisation menu every time user enables mod.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public virtual bool RequiresConfiguration => false;
|
||||
|
||||
/// <summary>
|
||||
/// The mods this mod cannot be enabled with.
|
||||
/// </summary>
|
||||
|
@ -24,6 +24,8 @@ namespace osu.Game.Rulesets.Mods
|
||||
|
||||
public override double ScoreMultiplier => 1.0;
|
||||
|
||||
public override bool RequiresConfiguration => true;
|
||||
|
||||
public override Type[] IncompatibleMods => new[] { typeof(ModEasy), typeof(ModHardRock) };
|
||||
|
||||
[SettingSource("Drain Rate", "Override a beatmap's set HP.")]
|
||||
|
Loading…
Reference in New Issue
Block a user