mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Use HasCompleted in Player
This commit is contained in:
parent
fc6c245de5
commit
7e64bec94f
@ -197,7 +197,7 @@ namespace osu.Game.Screens.Play
|
||||
};
|
||||
|
||||
// Bind the judgement processors to ourselves
|
||||
ScoreProcessor.AllJudged += onCompletion;
|
||||
ScoreProcessor.HasCompleted.ValueChanged += updateCompletionState;
|
||||
HealthProcessor.Failed += onFail;
|
||||
|
||||
foreach (var mod in Mods.Value.OfType<IApplicableToScoreProcessor>())
|
||||
@ -412,7 +412,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private ScheduledDelegate completionProgressDelegate;
|
||||
|
||||
private void onCompletion()
|
||||
private void updateCompletionState(ValueChangedEvent<bool> completionState)
|
||||
{
|
||||
// screen may be in the exiting transition phase.
|
||||
if (!this.IsCurrentScreen())
|
||||
|
Loading…
Reference in New Issue
Block a user