mirror of
https://github.com/osukey/osukey.git
synced 2025-05-30 09:57:21 +09:00
style(KeyCounter): fields and methods visiblity
This commit is contained in:
parent
5bec2d7c52
commit
42a5a06b9d
@ -42,9 +42,9 @@ namespace osu.Game.Screens.Play
|
|||||||
Name = trigger.Name;
|
Name = trigger.Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Bindable<bool> IsActive = new BindableBool();
|
protected readonly Bindable<bool> IsActive = new BindableBool();
|
||||||
|
|
||||||
public void Increment()
|
private void increment()
|
||||||
{
|
{
|
||||||
if (!IsCounting)
|
if (!IsCounting)
|
||||||
return;
|
return;
|
||||||
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Play
|
|||||||
countPresses.Value++;
|
countPresses.Value++;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Decrement()
|
private void decrement()
|
||||||
{
|
{
|
||||||
if (!IsCounting)
|
if (!IsCounting)
|
||||||
return;
|
return;
|
||||||
@ -64,14 +64,14 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
IsActive.Value = true;
|
IsActive.Value = true;
|
||||||
if (forwardPlayback)
|
if (forwardPlayback)
|
||||||
Increment();
|
increment();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual void Deactivate(bool forwardPlayback = true)
|
protected virtual void Deactivate(bool forwardPlayback = true)
|
||||||
{
|
{
|
||||||
IsActive.Value = false;
|
IsActive.Value = false;
|
||||||
if (!forwardPlayback)
|
if (!forwardPlayback)
|
||||||
Decrement();
|
decrement();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user