protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _dragDropController = new DragAndDropController<Item>(this, _spriteBatch); Components.Add(_dragDropController); SetupDraggableItems(); }
protected void OnMouseOver() { DragAndDropController.Instance()?.HoverOn(this); this.OnOver(); }
protected void OnMouseExit() { DragAndDropController.Instance().HoverOff(this); this.OnExit(); }
// Default implementation is to reset position when dropped on top of another interface object public virtual void OnDrop() { DragAndDropController.Instance().ResetDrop(); }