1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 13:47:24 +08:00

Rename method to be more appropriate

This commit is contained in:
Dean Herbert 2024-09-27 16:56:22 +09:00
parent d5c2484109
commit 1dd6082aa9
No known key found for this signature in database

View File

@ -52,16 +52,16 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter
{
base.LoadComplete();
scoreProcessor.OnResetFromReplayFrame += updateAllCounts;
scoreProcessor.OnResetFromReplayFrame += updateAllCountsFromReplayFrame;
scoreProcessor.NewJudgement += judgement => updateCount(judgement, false);
scoreProcessor.JudgementReverted += judgement => updateCount(judgement, true);
}
private bool hasUpdatedCounts;
private bool hasUpdatedCountsFromReplayFrame;
private void updateAllCounts()
private void updateAllCountsFromReplayFrame()
{
if (hasUpdatedCounts)
if (hasUpdatedCountsFromReplayFrame)
return;
foreach (var kvp in scoreProcessor.Statistics)
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter
count.ResultCount.Value = kvp.Value;
}
hasUpdatedCounts = true;
hasUpdatedCountsFromReplayFrame = true;
}
private void updateCount(JudgementResult judgement, bool revert)