style(KeyCounter): rename (Un)lit methods to (Un)light

This commit is contained in:
tsrk 2023-02-13 23:22:50 +00:00
parent df0633858c
commit a644fae364
No known key found for this signature in database
GPG Key ID: EBD46BB3049B56D6
5 changed files with 12 additions and 10 deletions

View File

@ -593,7 +593,7 @@ namespace osu.Game.Rulesets.Osu.Tests
{ {
if (e.Action == Action) if (e.Action == Action)
{ {
Lit(); Light();
} }
return false; return false;
@ -602,7 +602,7 @@ namespace osu.Game.Rulesets.Osu.Tests
public void OnReleased(KeyBindingReleaseEvent<OsuAction> e) public void OnReleased(KeyBindingReleaseEvent<OsuAction> e)
{ {
if (e.Action == Action) if (e.Action == Action)
Unlit(); Unlight();
} }
} }

View File

@ -81,7 +81,7 @@ namespace osu.Game.Screens.Play
Name = name; Name = name;
} }
protected void Lit(bool increment = true) protected void Light(bool increment = true)
{ {
if (target == null) return; if (target == null) return;
@ -90,7 +90,7 @@ namespace osu.Game.Screens.Play
target.Increment(); target.Increment();
} }
protected void Unlit(bool preserve = true) protected void Unlight(bool preserve = true)
{ {
if (target == null) return; if (target == null) return;

View File

@ -23,7 +23,7 @@ namespace osu.Game.Screens.Play
if (!EqualityComparer<T>.Default.Equals(action, Action)) if (!EqualityComparer<T>.Default.Equals(action, Action))
return false; return false;
Lit(forwards); Light(forwards);
return false; return false;
} }
@ -32,7 +32,7 @@ namespace osu.Game.Screens.Play
if (!EqualityComparer<T>.Default.Equals(action, Action)) if (!EqualityComparer<T>.Default.Equals(action, Action))
return; return;
Unlit(forwards); Unlight(forwards);
} }
} }
} }

View File

@ -21,7 +21,9 @@ namespace osu.Game.Screens.Play
protected override bool OnKeyDown(KeyDownEvent e) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (e.Key == Key) if (e.Key == Key)
Lit(); {
Light();
}
return base.OnKeyDown(e); return base.OnKeyDown(e);
} }
@ -29,7 +31,7 @@ namespace osu.Game.Screens.Play
protected override void OnKeyUp(KeyUpEvent e) protected override void OnKeyUp(KeyUpEvent e)
{ {
if (e.Key == Key) if (e.Key == Key)
Unlit(); Unlight();
base.OnKeyUp(e); base.OnKeyUp(e);
} }

View File

@ -39,7 +39,7 @@ namespace osu.Game.Screens.Play
protected override bool OnMouseDown(MouseDownEvent e) protected override bool OnMouseDown(MouseDownEvent e)
{ {
if (e.Button == Button) if (e.Button == Button)
Lit(); Light();
return base.OnMouseDown(e); return base.OnMouseDown(e);
} }
@ -47,7 +47,7 @@ namespace osu.Game.Screens.Play
protected override void OnMouseUp(MouseUpEvent e) protected override void OnMouseUp(MouseUpEvent e)
{ {
if (e.Button == Button) if (e.Button == Button)
Unlit(); Unlight();
base.OnMouseUp(e); base.OnMouseUp(e);
} }