Expose "is break time" bindable within GameplayBeatmap

This commit is contained in:
Salman Ahmed
2020-08-03 22:14:00 +03:00
parent f37ba49f7f
commit 21eaf0e995
2 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,11 @@ namespace osu.Game.Screens.Play
{
public readonly IBeatmap PlayableBeatmap;
/// <summary>
/// Whether the gameplay is currently in a break.
/// </summary>
public IBindable<bool> IsBreakTime { get; } = new Bindable<bool>();
public GameplayBeatmap(IBeatmap playableBeatmap)
{
PlayableBeatmap = playableBeatmap;

View File

@ -612,6 +612,7 @@ namespace osu.Game.Screens.Play
// bind component bindables.
Background.IsBreakTime.BindTo(breakTracker.IsBreakTime);
gameplayBeatmap.IsBreakTime.BindTo(breakTracker.IsBreakTime);
DimmableStoryboard.IsBreakTime.BindTo(breakTracker.IsBreakTime);
Background.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);