Example #1
0
        public override void DrawDraggingImage(Point mousePosition)
        {
            Rectangle sourceRectangle = Sheet.Get(sprite).UvToPixels();

            UIBatch.Draw(atlas,
                         mousePosition.ToVector2() - new Vector2(sourceRectangle.Width / 2, sourceRectangle.Height / 2),
                         sourceRectangle, Color.White, 0f, Vector2.Zero, 1, SpriteEffects.None, 0);
        }