1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-24 12:10:15 +08:00

Disallow use of scoping button when at freestyle song select

This commit is contained in:
Dean Herbert
2026-02-19 01:47:03 +09:00
Unverified
parent e15cb08b44
commit 1153d17153
3 changed files with 10 additions and 1 deletions
@@ -33,6 +33,8 @@ namespace osu.Game.Screens.OnlinePlay
this.item = item;
Padding = new MarginPadding { Horizontal = HORIZONTAL_OVERFLOW_PADDING };
SupportScoping = false;
}
[BackgroundDependencyLoader]
@@ -108,6 +108,7 @@ namespace osu.Game.Screens.SelectV2
showConvertedBeatmaps.BindValueChanged(_ => updateBeatmapSet(), true);
Expanded.BindValueChanged(_ => updateEnabled());
scopedBeatmapSet.BindValueChanged(_ => updateEnabled(), true);
scopedBeatmapSet.BindDisabledChanged(_ => updateEnabled(), true);
Enabled.BindValueChanged(_ => updateAppearance(), true);
FinishTransforms(true);
}
@@ -210,7 +211,7 @@ namespace osu.Game.Screens.SelectV2
private void updateEnabled()
{
Enabled.Value = Expanded.Value && scopedBeatmapSet.Value == null;
Enabled.Value = Expanded.Value && !scopedBeatmapSet.Disabled && scopedBeatmapSet.Value == null;
}
protected override bool OnMouseDown(MouseDownEvent e)
+6
View File
@@ -93,6 +93,12 @@ namespace osu.Game.Screens.SelectV2
/// </summary>
protected bool ControlGlobalMusic { get; init; } = true;
/// <summary>
/// Whether this song select instance should allow scoping down to a specific beatmap set,
/// exposing other difficulties that are otherwise hidden by filter criteria.
/// </summary>
protected bool SupportScoping { init => scopedBeatmapSet.Disabled = !value; }
/// <summary>
/// Whether the osu! logo should be shown at the bottom-right of the screen.
/// </summary>