mirror of
https://github.com/osukey/osukey.git
synced 2025-06-27 22:27:57 +09: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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user