/** Update our contents */ public override void Update() { base.Update(); if (DDContent != null) { DDContent.Update(); } }
/** 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(); }
/** 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(); }