mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08: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);
|
hudOverlay.KeyCounter.Visible.BindTo(RulesetContainer.HasReplayLoaded);
|
||||||
|
|
||||||
RulesetContainer.IsPaused.BindTo(pauseContainer.IsPaused);
|
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)
|
if (ShowStoryboard)
|
||||||
initializeStoryboard(false);
|
initializeStoryboard(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user