mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 10:52:53 +08:00
Remove redundancies.
This commit is contained in:
parent
3e7639e58f
commit
30c3c932b1
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user