mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 00:23:59 +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;
|
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)
|
public GameplayBeatmap(IBeatmap playableBeatmap)
|
||||||
{
|
{
|
||||||
PlayableBeatmap = playableBeatmap;
|
PlayableBeatmap = playableBeatmap;
|
||||||
|
@ -612,6 +612,7 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
// bind component bindables.
|
// bind component bindables.
|
||||||
Background.IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
Background.IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
||||||
|
gameplayBeatmap.IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
||||||
DimmableStoryboard.IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
DimmableStoryboard.IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
||||||
|
|
||||||
Background.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);
|
Background.StoryboardReplacesBackground.BindTo(storyboardReplacesBackground);
|
||||||
|
Reference in New Issue
Block a user