style(KeyCounter): rename IsLit to IsActive

This commit is contained in:
tsrk 2023-02-17 00:40:01 +00:00
parent 6193aeed12
commit d0e8d65766
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ namespace osu.Game.Screens.Play
Height = buttonSprite.DrawHeight; Height = buttonSprite.DrawHeight;
Width = buttonSprite.DrawWidth; Width = buttonSprite.DrawWidth;
IsLit.BindValueChanged(e => updateGlowSprite(e.NewValue), true); IsActive.BindValueChanged(e => updateGlowSprite(e.NewValue), true);
CountPresses.BindValueChanged(e => countSpriteText.Text = e.NewValue.ToString(@"#,0"), true); CountPresses.BindValueChanged(e => countSpriteText.Text = e.NewValue.ToString(@"#,0"), true);
} }

View File

@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play
Name = trigger.Name; Name = trigger.Name;
} }
protected Bindable<bool> IsLit = new BindableBool(); protected Bindable<bool> IsActive = new BindableBool();
public void Increment() public void Increment()
{ {
@ -62,14 +62,14 @@ namespace osu.Game.Screens.Play
protected virtual void Activate(bool increment = true) protected virtual void Activate(bool increment = true)
{ {
IsLit.Value = true; IsActive.Value = true;
if (increment) if (increment)
Increment(); Increment();
} }
protected virtual void Deactivate(bool preserve = true) protected virtual void Deactivate(bool preserve = true)
{ {
IsLit.Value = false; IsActive.Value = false;
if (!preserve) if (!preserve)
Decrement(); Decrement();
} }