mirror of
https://github.com/ppy/osu
synced 2025-02-01 02:41:52 +00:00
style(KeyCounter): forwardPlayback
This commit is contained in:
parent
8830e06588
commit
5bec2d7c52
@ -60,17 +60,17 @@ namespace osu.Game.Screens.Play
|
||||
countPresses.Value--;
|
||||
}
|
||||
|
||||
protected virtual void Activate(bool increment = true)
|
||||
protected virtual void Activate(bool forwardPlayback = true)
|
||||
{
|
||||
IsActive.Value = true;
|
||||
if (increment)
|
||||
if (forwardPlayback)
|
||||
Increment();
|
||||
}
|
||||
|
||||
protected virtual void Deactivate(bool preserve = true)
|
||||
protected virtual void Deactivate(bool forwardPlayback = true)
|
||||
{
|
||||
IsActive.Value = false;
|
||||
if (!preserve)
|
||||
if (!forwardPlayback)
|
||||
Decrement();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user