Copy/Paste Feature #42

Open
opened 2021-07-19 21:47:30 +00:00 by kirsle · 0 comments

The level editor could benefit from an ability to select and copy/paste a region of the drawing elsewhere.

Some ideas how it could work:

Selection Tool

Draw a rectangular or elliptical shape on your drawing. The canvas Strokes feature would be used similar to when drawing those shapes normally.

When releasing the mouse, a persistent Stroke of the shape should remain on the canvas until clicked outside of to de-select or until a different draw tool is chosen.

Clicking the mouse button inside the selected shape should "pop out" a copy of that portion of the drawing:

  • Similar to the Doodad tool when drag/dropping a doodad.
  • A new Canvas widget matching the dimensions of the selection would be created and all of the pixels in the selection copied over to it.
  • This Canvas would drag with the mouse in the same way a Doodad canvas does.
  • Dropping the Canvas should copy the pixels back onto the parent level at that position.

Actors, too?

If the selection intersects an actor (doodad) placed on the level, the actor and its relative position in the selection should be noted as well.

When the duplicated selection is committed back elsewhere on the level, new actors should be created for any actors caught up in the selection.

The level editor could benefit from an ability to select and copy/paste a region of the drawing elsewhere. Some ideas how it could work: ### Selection Tool Draw a rectangular or elliptical shape on your drawing. The canvas Strokes feature would be used similar to when drawing those shapes normally. When releasing the mouse, a persistent Stroke of the shape should remain on the canvas until clicked outside of to de-select or until a different draw tool is chosen. Clicking the mouse button inside the selected shape should "pop out" a copy of that portion of the drawing: * Similar to the Doodad tool when drag/dropping a doodad. * A new Canvas widget matching the dimensions of the selection would be created and all of the pixels in the selection copied over to it. * This Canvas would drag with the mouse in the same way a Doodad canvas does. * Dropping the Canvas should copy the pixels back onto the parent level at that position. ### Actors, too? If the selection intersects an actor (doodad) placed on the level, the actor and its relative position in the selection should be noted as well. When the duplicated selection is committed back elsewhere on the level, new actors should be created for any actors caught up in the selection.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SketchyMaze/doodle#42
There is no content yet.