mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 22:42:55 +08:00
Fix mod select overlay dimming itself
This commit is contained in:
parent
c5011de774
commit
b7126b3efb
osu.Game
@ -24,6 +24,12 @@ namespace osu.Game.Graphics.Containers
|
|||||||
|
|
||||||
protected override bool BlockNonPositionalInput => true;
|
protected override bool BlockNonPositionalInput => true;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Temporary to allow for overlays in the main screen content to not dim theirselves.
|
||||||
|
/// Should be eventually replaced by dimming which is aware of the target dim container (traverse parent for certain interface type?).
|
||||||
|
/// </summary>
|
||||||
|
protected virtual bool DimMainContent => true;
|
||||||
|
|
||||||
[Resolved(CanBeNull = true)]
|
[Resolved(CanBeNull = true)]
|
||||||
private OsuGame osuGame { get; set; }
|
private OsuGame osuGame { get; set; }
|
||||||
|
|
||||||
@ -95,7 +101,7 @@ namespace osu.Game.Graphics.Containers
|
|||||||
if (OverlayActivationMode.Value != OverlayActivation.Disabled)
|
if (OverlayActivationMode.Value != OverlayActivation.Disabled)
|
||||||
{
|
{
|
||||||
if (PlaySamplesOnStateChange) samplePopIn?.Play();
|
if (PlaySamplesOnStateChange) samplePopIn?.Play();
|
||||||
if (BlockScreenWideMouse) osuGame?.AddBlockingOverlay(this);
|
if (BlockScreenWideMouse && DimMainContent) osuGame?.AddBlockingOverlay(this);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
State = Visibility.Hidden;
|
State = Visibility.Hidden;
|
||||||
|
@ -38,6 +38,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
protected override bool BlockNonPositionalInput => false;
|
protected override bool BlockNonPositionalInput => false;
|
||||||
|
|
||||||
|
protected override bool DimMainContent => false;
|
||||||
|
|
||||||
protected readonly FillFlowContainer<ModSection> ModSectionsContainer;
|
protected readonly FillFlowContainer<ModSection> ModSectionsContainer;
|
||||||
|
|
||||||
protected readonly Bindable<IEnumerable<Mod>> SelectedMods = new Bindable<IEnumerable<Mod>>(new Mod[] { });
|
protected readonly Bindable<IEnumerable<Mod>> SelectedMods = new Bindable<IEnumerable<Mod>>(new Mod[] { });
|
||||||
|
Loading…
Reference in New Issue
Block a user