mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 08:07:24 +08:00
Update existing overlay containers to not block scroll input
This commit is contained in:
parent
995c244cee
commit
0eab9daf13
@ -23,6 +23,8 @@ namespace osu.Game.Graphics.Containers
|
|||||||
protected virtual string PopInSampleName => "UI/overlay-pop-in";
|
protected virtual string PopInSampleName => "UI/overlay-pop-in";
|
||||||
protected virtual string PopOutSampleName => "UI/overlay-pop-out";
|
protected virtual string PopOutSampleName => "UI/overlay-pop-out";
|
||||||
|
|
||||||
|
protected override bool BlockScrollInput => false;
|
||||||
|
|
||||||
protected override bool BlockNonPositionalInput => true;
|
protected override bool BlockNonPositionalInput => true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -19,6 +19,8 @@ namespace osu.Game.Screens.OnlinePlay.Match.Components
|
|||||||
|
|
||||||
protected OnlinePlayComposite Settings { get; set; }
|
protected OnlinePlayComposite Settings { get; set; }
|
||||||
|
|
||||||
|
protected override bool BlockScrollInput => false;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
|
@ -31,6 +31,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
protected override bool BlockNonPositionalInput => true;
|
protected override bool BlockNonPositionalInput => true;
|
||||||
|
|
||||||
|
protected override bool BlockScrollInput => false;
|
||||||
|
|
||||||
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
public override bool ReceivePositionalInputAt(Vector2 screenSpacePos) => true;
|
||||||
|
|
||||||
public Action OnRetry;
|
public Action OnRetry;
|
||||||
|
@ -45,6 +45,8 @@ namespace osu.Game.Screens.Play
|
|||||||
public override bool HandleNonPositionalInput => AllowSeeking.Value;
|
public override bool HandleNonPositionalInput => AllowSeeking.Value;
|
||||||
public override bool HandlePositionalInput => AllowSeeking.Value;
|
public override bool HandlePositionalInput => AllowSeeking.Value;
|
||||||
|
|
||||||
|
protected override bool BlockScrollInput => false;
|
||||||
|
|
||||||
private double firstHitTime => objects.First().StartTime;
|
private double firstHitTime => objects.First().StartTime;
|
||||||
|
|
||||||
private IEnumerable<HitObject> objects;
|
private IEnumerable<HitObject> objects;
|
||||||
|
Loading…
Reference in New Issue
Block a user