mirror of
https://github.com/ppy/osu
synced 2024-12-17 20:35:21 +00:00
Delay key count stop
This commit is contained in:
parent
8414fe9d05
commit
82ddbb3f5d
@ -223,7 +223,9 @@ namespace osu.Game.Screens.Play
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user