public override void Tick() { if (!IsDragging) { return; } ConnectionWire.UpdateMousePosition(Mouse.Position); base.Tick(); }
protected override void OnMouseUp(Sandbox.UI.MousePanelEvent e) { if (!IsDragging) { return; } if (ConnectionWire.EndPoint == null) { ConnectionWire.Delete(true); } IsDragging = false; Window.Instance.ActiveNodeConnectionWire = null; base.OnMouseUp(e); }