mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Fix hold to pause button not working when HUD is hidden
This commit is contained in:
@ -39,9 +39,16 @@ namespace osu.Game.Screens.Play
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public float BottomScoringElementsHeight { get; private set; }
|
public float BottomScoringElementsHeight { get; private set; }
|
||||||
|
|
||||||
|
protected override bool ShouldBeConsideredForInput(Drawable child)
|
||||||
|
{
|
||||||
// HUD uses AlwaysVisible on child components so they can be in an updated state for next display.
|
// HUD uses AlwaysVisible on child components so they can be in an updated state for next display.
|
||||||
// Without blocking input, this would also allow them to be interacted with in such a state.
|
// Without blocking input, this would also allow them to be interacted with in such a state.
|
||||||
public override bool PropagatePositionalInputSubTree => ShowHud.Value;
|
if (ShowHud.Value)
|
||||||
|
return base.ShouldBeConsideredForInput(child);
|
||||||
|
|
||||||
|
// hold to quit button should always be interactive.
|
||||||
|
return child == bottomRightElements;
|
||||||
|
}
|
||||||
|
|
||||||
public readonly KeyCounterDisplay KeyCounter;
|
public readonly KeyCounterDisplay KeyCounter;
|
||||||
public readonly ModDisplay ModDisplay;
|
public readonly ModDisplay ModDisplay;
|
||||||
|
Reference in New Issue
Block a user