1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-06 07:02:54 +08:00

Code quality fixes

This commit is contained in:
Dean Herbert 2019-08-30 15:29:13 +09:00
parent 1d77e3764d
commit 835ee0aa2f

View File

@ -18,10 +18,13 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
private const int margin = 10; private const int margin = 10;
private readonly Bindable<ScoreMeterType> type = new Bindable<ScoreMeterType>(); private readonly Bindable<ScoreMeterType> type = new Bindable<ScoreMeterType>();
private readonly HitWindows hitWindows; private readonly HitWindows hitWindows;
private readonly ScoreProcessor processor; private readonly ScoreProcessor processor;
private BarHitErrorDisplay leftDisplay; private BarHitErrorDisplay leftDisplay;
private BarHitErrorDisplay rightDisplay; private BarHitErrorDisplay rightDisplay;
public HitErrorDisplayOverlay(ScoreProcessor processor) public HitErrorDisplayOverlay(ScoreProcessor processor)
@ -40,10 +43,10 @@ namespace osu.Game.Screens.Play.HitErrorDisplay
protected override void LoadComplete() protected override void LoadComplete()
{ {
base.LoadComplete(); base.LoadComplete();
type.BindValueChanged(onTypeChanged, true); type.BindValueChanged(typeChanged, true);
} }
private void onTypeChanged(ValueChangedEvent<ScoreMeterType> type) private void typeChanged(ValueChangedEvent<ScoreMeterType> type)
{ {
switch (type.NewValue) switch (type.NewValue)
{ {