Example #1
0
        public override void Tick()
        {
            if (!IsDragging)
            {
                return;
            }

            ConnectionWire.UpdateMousePosition(Mouse.Position);

            base.Tick();
        }
Example #2
0
        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);
        }