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:
parent
d5c2484109
commit
1dd6082aa9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user