Ejemplo n.º 1
0
 /** Update our contents */
 public override void Update()
 {
     base.Update();
     if (DDContent != null)
     {
         DDContent.Update();
     }
 }
Ejemplo n.º 2
0
 /** The the contents of this slot (i.e. the item in it) */
 public override void DrawContents()
 {
     // draw our object
     if (DDContent != null)
     {
         DDContent.Draw();
     }
     base.DrawContents();
 }
Ejemplo n.º 3
0
 /** Simple draw for debuging, you will probably want to override this */
 public override void Draw()
 {
     // draw our object
     if (DDContent != null)
     {
         // position ourselves under the mouse
         DDContent.X = (int)(Mouse.Position.x + offset.x);
         DDContent.Y = (int)(Mouse.Position.y + offset.y);
         DDContent.Draw();
     }
     UpdateDragDrop();
 }