Beispiel #1
0
 private void OnMouseDragStart(object?sender, MouseEventArgs e)
 {
     if (DisplayArea.Contains(e.Position.ToVector2()))
     {
         var element = new DragAndDrop(_ability);
         element.Show(Root.System);
     }
 }
Beispiel #2
0
 private void OnMouseDragStart(object?sender, MouseEventArgs e)
 {
     if (DisplayArea.Contains(e.Position.ToVector2()))
     {
         var element = new DragAndDrop(_pack.Item);
         element.OnSuccesfullyDrop += () => { _pack.Remove(); };
         element.Show(Root.System);
     }
 }