---changing---

This commit is contained in:
Jorolf
2017-04-19 15:01:05 +02:00
parent eda0e99179
commit d04893a43a
5 changed files with 137 additions and 129 deletions

View File

@ -20,12 +20,6 @@ namespace osu.Game.Graphics.Cursor
protected override Drawable CreateCursor() => new Cursor();
private bool dragging;
private readonly Tooltip tooltip;
public MenuCursor()
{
Add(tooltip = new Tooltip());
}
protected override bool OnMouseMove(InputState state)
{
@ -43,9 +37,6 @@ namespace osu.Game.Graphics.Cursor
ActiveCursor.RotateTo(degrees, 600, EasingTypes.OutQuint);
}
tooltip.Position = new Vector2(state.Mouse.Position.X,Math.Min(ActiveCursor.BoundingBox.Bottom, state.Mouse.Position.Y + ActiveCursor.DrawHeight));
tooltip.MouseState = state.Mouse;
return base.OnMouseMove(state);
}
@ -107,7 +98,7 @@ namespace osu.Game.Graphics.Cursor
public Cursor()
{
AutoSizeAxes = Axes.Both;
Size = new Vector2(42);
}
[BackgroundDependencyLoader]