mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Remove cast and expose as IBindable
This commit is contained in:
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Play
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the gameplay is currently in a break.
|
/// Whether the gameplay is currently in a break.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public readonly BindableBool IsBreakTime = new BindableBool();
|
public readonly IBindable<bool> IsBreakTime = new BindableBool();
|
||||||
|
|
||||||
private BreakTracker breakTracker;
|
private BreakTracker breakTracker;
|
||||||
|
|
||||||
@ -261,8 +261,8 @@ namespace osu.Game.Screens.Play
|
|||||||
foreach (var mod in Mods.Value.OfType<IApplicableToHealthProcessor>())
|
foreach (var mod in Mods.Value.OfType<IApplicableToHealthProcessor>())
|
||||||
mod.ApplyToHealthProcessor(HealthProcessor);
|
mod.ApplyToHealthProcessor(HealthProcessor);
|
||||||
|
|
||||||
|
IsBreakTime.BindTo(breakTracker.IsBreakTime);
|
||||||
breakTracker.IsBreakTime.BindValueChanged(onBreakTimeChanged, true);
|
breakTracker.IsBreakTime.BindValueChanged(onBreakTimeChanged, true);
|
||||||
IsBreakTime.BindTo((BindableBool)breakTracker.IsBreakTime);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private Drawable createUnderlayComponents() =>
|
private Drawable createUnderlayComponents() =>
|
||||||
|
Reference in New Issue
Block a user