mirror of
https://github.com/ppy/osu
synced 2024-12-25 16:22:23 +00:00
style(KeyCounter): rename (Un)lit
methods to (Un)light
This commit is contained in:
parent
df0633858c
commit
a644fae364
@ -593,7 +593,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
{
|
||||
if (e.Action == Action)
|
||||
{
|
||||
Lit();
|
||||
Light();
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -602,7 +602,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
|
||||
{
|
||||
if (e.Action == Action)
|
||||
Unlit();
|
||||
Unlight();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ namespace osu.Game.Screens.Play
|
||||
Name = name;
|
||||
}
|
||||
|
||||
protected void Lit(bool increment = true)
|
||||
protected void Light(bool increment = true)
|
||||
{
|
||||
if (target == null) return;
|
||||
|
||||
@ -90,7 +90,7 @@ namespace osu.Game.Screens.Play
|
||||
target.Increment();
|
||||
}
|
||||
|
||||
protected void Unlit(bool preserve = true)
|
||||
protected void Unlight(bool preserve = true)
|
||||
{
|
||||
if (target == null) return;
|
||||
|
||||
|
@ -23,7 +23,7 @@ namespace osu.Game.Screens.Play
|
||||
if (!EqualityComparer<T>.Default.Equals(action, Action))
|
||||
return false;
|
||||
|
||||
Lit(forwards);
|
||||
Light(forwards);
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ namespace osu.Game.Screens.Play
|
||||
if (!EqualityComparer<T>.Default.Equals(action, Action))
|
||||
return;
|
||||
|
||||
Unlit(forwards);
|
||||
Unlight(forwards);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,9 @@ namespace osu.Game.Screens.Play
|
||||
protected override bool OnKeyDown(KeyDownEvent e)
|
||||
{
|
||||
if (e.Key == Key)
|
||||
Lit();
|
||||
{
|
||||
Light();
|
||||
}
|
||||
|
||||
return base.OnKeyDown(e);
|
||||
}
|
||||
@ -29,7 +31,7 @@ namespace osu.Game.Screens.Play
|
||||
protected override void OnKeyUp(KeyUpEvent e)
|
||||
{
|
||||
if (e.Key == Key)
|
||||
Unlit();
|
||||
Unlight();
|
||||
|
||||
base.OnKeyUp(e);
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ namespace osu.Game.Screens.Play
|
||||
protected override bool OnMouseDown(MouseDownEvent e)
|
||||
{
|
||||
if (e.Button == Button)
|
||||
Lit();
|
||||
Light();
|
||||
|
||||
return base.OnMouseDown(e);
|
||||
}
|
||||
@ -47,7 +47,7 @@ namespace osu.Game.Screens.Play
|
||||
protected override void OnMouseUp(MouseUpEvent e)
|
||||
{
|
||||
if (e.Button == Button)
|
||||
Unlit();
|
||||
Unlight();
|
||||
|
||||
base.OnMouseUp(e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user