/// <inheritdoc /> public override void Update(float deltaTime) { // Auto hide if mouse leaves control area Vector2 mousePos = Application.MousePosition; Vector2 location = _showTarget.ScreenToClient(mousePos); if (!_showTarget.OnTestTooltipOverControl(ref location)) { // Mouse left or sth Hide(); } base.Update(deltaTime); }
/// <inheritdoc /> public override void Update(float deltaTime) { // Auto hide if mouse leaves control area var mousePos = Input.MouseScreenPosition; var location = _showTarget.PointFromScreen(mousePos); if (!_showTarget.OnTestTooltipOverControl(ref location)) { // Mouse left or sth Hide(); } base.Update(deltaTime); }