mirror of
https://github.com/ppy/osu
synced 2025-01-20 13:00:54 +00:00
style(KeyCounter): rename IsLit
to IsActive
This commit is contained in:
parent
6193aeed12
commit
d0e8d65766
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user