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