mirror of
https://github.com/ppy/osu
synced 2025-02-09 22:57:37 +00:00
removed unused stuff and change the tooltip y coordinate
This commit is contained in:
parent
906d68936a
commit
095b6fded6
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user