mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 09:33:02 +08:00
Rename {Requires -> Pending}Configuration
This commit is contained in:
parent
6bfdfeb153
commit
3109066e34
@ -59,13 +59,13 @@ namespace osu.Game.Overlays.Mods
|
||||
|
||||
protected override void Select()
|
||||
{
|
||||
modState.RequiresConfiguration = Mod.RequiresConfiguration;
|
||||
modState.PendingConfiguration = Mod.RequiresConfiguration;
|
||||
Active.Value = true;
|
||||
}
|
||||
|
||||
protected override void Deselect()
|
||||
{
|
||||
modState.RequiresConfiguration = false;
|
||||
modState.PendingConfiguration = false;
|
||||
Active.Value = false;
|
||||
}
|
||||
|
||||
|
@ -362,20 +362,20 @@ namespace osu.Game.Overlays.Mods
|
||||
return;
|
||||
|
||||
bool anyCustomisableModActive = false;
|
||||
bool anyModRequiresCustomisation = false;
|
||||
bool anyModPendingConfiguration = false;
|
||||
|
||||
foreach (var modState in allAvailableMods)
|
||||
{
|
||||
anyCustomisableModActive |= modState.Active.Value && modState.Mod.GetSettingsSourceProperties().Any();
|
||||
anyModRequiresCustomisation |= modState.RequiresConfiguration;
|
||||
modState.RequiresConfiguration = false;
|
||||
anyModPendingConfiguration |= modState.PendingConfiguration;
|
||||
modState.PendingConfiguration = false;
|
||||
}
|
||||
|
||||
if (anyCustomisableModActive)
|
||||
{
|
||||
customisationVisible.Disabled = false;
|
||||
|
||||
if (anyModRequiresCustomisation && !customisationVisible.Value)
|
||||
if (anyModPendingConfiguration && !customisationVisible.Value)
|
||||
customisationVisible.Value = true;
|
||||
}
|
||||
else
|
||||
|
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Mods
|
||||
/// This flag is read by the <see cref="ModSelectOverlay"/> to determine if the customisation panel should be opened after a mod change
|
||||
/// and cleared after reading.
|
||||
/// </summary>
|
||||
public bool RequiresConfiguration { get; set; }
|
||||
public bool PendingConfiguration { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the mod is currently filtered out due to not matching imposed criteria.
|
||||
|
Loading…
Reference in New Issue
Block a user