예제 #1
0
 public void Element_OnGrab(DraggableItem sender)
 {
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void Element_OnDrop(DraggableItem sender)
 {
     currElement.OnDrop -= Element_OnDrop;
     CreateElement(SageGame.gameSelectedIndex);//SLOT
 }
예제 #4
0
 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);
 }