Merge pull request #20266 from cdwcgt/catch-combo-hide

Fade out CatchComboDisplay when hide HUD
This commit is contained in:
Dan Balasescu
2022-10-12 16:59:07 +09:00
committed by GitHub
4 changed files with 53 additions and 11 deletions

View File

@ -94,6 +94,11 @@ namespace osu.Game.Screens.Play
public int RestartCount;
/// <summary>
/// Whether the <see cref="HUDOverlay"/> is currently visible.
/// </summary>
public IBindable<bool> ShowingOverlayComponents = new Bindable<bool>();
[Resolved]
private ScoreManager scoreManager { get; set; }
@ -1015,6 +1020,8 @@ namespace osu.Game.Screens.Play
});
HUDOverlay.IsPlaying.BindTo(localUserPlaying);
ShowingOverlayComponents.BindTo(HUDOverlay.ShowHud);
DimmableStoryboard.IsBreakTime.BindTo(breakTracker.IsBreakTime);
DimmableStoryboard.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);