public void Element_OnGrab(DraggableItem sender) { }
public void ElementDropped(DraggableItem sender) { if (active) { if (currElement == sender) { Element.Type temp = currElement.ElementType; currElement = null; Element savedElement = Element.ElementBuilder.GetElement(temp, m_Level, SageGame.gameSelectedIndex);//SLOT DroppedIn(savedElement); m_Level.remain(savedElement); } if (sender is Element && new Rectangle((int)m_Position.X, (int)m_Position.Y, m_nWidth, m_nHeight).Intersects(sender.BoundingBox)) ((Element)sender).RegisterSaveArea(this); } }
public void Element_OnDrop(DraggableItem sender) { currElement.OnDrop -= Element_OnDrop; CreateElement(SageGame.gameSelectedIndex);//SLOT }
public void ElementDropped(DraggableItem sender) { if (currElement == sender) currElement = null; if (sender is Element && new Rectangle((int)m_Position.X, (int)m_Position.Y, m_nWidth, m_nHeight).Intersects(sender.BoundingBox)) ((Element)sender).RegisterDropArea(this); }