1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 10:52:53 +08:00

Remove redundancies.

This commit is contained in:
Dean Herbert 2017-04-20 15:29:34 +09:00
parent 3e7639e58f
commit 30c3c932b1
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
2 changed files with 2 additions and 16 deletions

View File

@ -80,20 +80,6 @@ namespace osu.Desktop.VisualTests.Tests
private class TooltipSlider : OsuSliderBar<int>, IHasTooltip
{
public string TooltipText => Current.Value.ToString();
public bool Disappear { get; set; } = true;
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
Disappear = false;
return base.OnMouseDown(state, args);
}
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
Disappear = true;
return base.OnMouseUp(state, args);
}
}
}
}

View File

@ -41,9 +41,9 @@ namespace osu.Game.Graphics.Cursor
}
[BackgroundDependencyLoader]
private void load(OsuColour colour, UserInputManager input)
private void load(UserInputManager input)
{
this.inputManager = input;
inputManager = input;
}
protected override void Update()