1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-21 07:49:52 +08:00

style(KeyCounter): rename IsLit to IsActive

This commit is contained in:
tsrk
2023-02-17 00:40:01 +00:00
Unverified
parent 6193aeed12
commit d0e8d65766
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ namespace osu.Game.Screens.Play
Height = buttonSprite.DrawHeight;
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);
}
+3 -3
View File
@@ -42,7 +42,7 @@ namespace osu.Game.Screens.Play
Name = trigger.Name;
}
protected Bindable<bool> IsLit = new BindableBool();
protected Bindable<bool> IsActive = new BindableBool();
public void Increment()
{
@@ -62,14 +62,14 @@ namespace osu.Game.Screens.Play
protected virtual void Activate(bool increment = true)
{
IsLit.Value = true;
IsActive.Value = true;
if (increment)
Increment();
}
protected virtual void Deactivate(bool preserve = true)
{
IsLit.Value = false;
IsActive.Value = false;
if (!preserve)
Decrement();
}