removed unused stuff and change the tooltip y coordinate

This commit is contained in:
Jorolf 2017-04-17 19:50:34 +02:00
parent 906d68936a
commit 095b6fded6
2 changed files with 1 additions and 2 deletions

View File

@ -43,7 +43,7 @@ namespace osu.Game.Graphics.Cursor
ActiveCursor.RotateTo(degrees, 600, EasingTypes.OutQuint);
}
tooltip.Position = new Vector2(state.Mouse.Position.X,ActiveCursor.BoundingBox.Bottom);
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);

View File

@ -99,7 +99,6 @@ namespace osu.Game.Graphics.Cursor
protected override void Update()
{
Scheduler.Update();
if (overhang?.Overhanging ?? false)
TooltipText = overhang.Tooltip;
else if (overhang != null)