Delay key count stop

This commit is contained in:
Dean Herbert 2018-07-19 01:18:07 +09:00
parent 8414fe9d05
commit 82ddbb3f5d
1 changed files with 3 additions and 1 deletions

View File

@ -223,7 +223,9 @@ private void load(AudioManager audio, APIAccess api, OsuConfigManager config)
hudOverlay.KeyCounter.Visible.BindTo(RulesetContainer.HasReplayLoaded);
RulesetContainer.IsPaused.BindTo(pauseContainer.IsPaused);
RulesetContainer.IsPaused.ValueChanged += paused => hudOverlay.KeyCounter.IsCounting = !paused;
// schedule to ensure we count any key presses from the current frame (which may affect gameplay).
RulesetContainer.IsPaused.ValueChanged += paused => Schedule(() => hudOverlay.KeyCounter.IsCounting = !paused);
if (ShowStoryboard)
initializeStoryboard(false);