1
0
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:
Bartłomiej Dach 2022-08-16 22:42:30 +02:00
parent 6bfdfeb153
commit 3109066e34
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
3 changed files with 7 additions and 7 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -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.