mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 20:22:55 +08:00
Apply NRT to BreakOverlay
This commit is contained in:
parent
797b020747
commit
98faa07590
@ -1,8 +1,6 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
#nullable disable
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Bindables;
|
||||
@ -32,7 +30,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private readonly Container fadeContainer;
|
||||
|
||||
private IReadOnlyList<BreakPeriod> breaks;
|
||||
private IReadOnlyList<BreakPeriod> breaks = Array.Empty<BreakPeriod>();
|
||||
|
||||
public IReadOnlyList<BreakPeriod> Breaks
|
||||
{
|
||||
@ -138,12 +136,9 @@ namespace osu.Game.Screens.Play
|
||||
base.LoadComplete();
|
||||
initializeBreaks();
|
||||
|
||||
if (scoreProcessor != null)
|
||||
{
|
||||
info.AccuracyDisplay.Current.BindTo(scoreProcessor.Accuracy);
|
||||
((IBindable<ScoreRank>)info.GradeDisplay.Current).BindTo(scoreProcessor.Rank);
|
||||
}
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
@ -157,8 +152,6 @@ namespace osu.Game.Screens.Play
|
||||
FinishTransforms(true);
|
||||
Scheduler.CancelDelayedTasks();
|
||||
|
||||
if (breaks == null) return; // we need breaks.
|
||||
|
||||
foreach (var b in breaks)
|
||||
{
|
||||
if (!b.HasEffect)
|
||||
|
Loading…
Reference in New Issue
Block a user