mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Expose "is break time" bindable within GameplayBeatmap
This commit is contained in:
@ -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;
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user