Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection tool #27

Open
foxnne opened this issue Oct 3, 2023 · 1 comment
Open

Selection tool #27

foxnne opened this issue Oct 3, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@foxnne
Copy link
Owner

foxnne commented Oct 3, 2023

One critical thing is adding a selection tool so it's easy to copy/paste parts of an image around. This is decently complex, as we will need to track changes for history as well as making sure we don't break other tools.

Currently, all that is available is copying the selected sprite to another tile (ctrl/cmd + arrow keys) or shifting the currently selected sprite (shift + arrow keys). Shifting isn't perfect as it leaves existing pixels as they are when shifting.

I think I like these quick keys for copying sprites, which comes in handy when creating and editing animations, but a proper selection tool would be really nice.

@foxnne foxnne added the enhancement New feature or request label Oct 3, 2023
@foxnne foxnne added this to the 0.2 milestone Oct 3, 2023
@foxnne
Copy link
Owner Author

foxnne commented Sep 6, 2024

I have recently added a first pass at a mask-based selection tool. I would love some feedback. My thinking here is that a lasso-based selection tool similar to photoshop would be less precise. The current tool supports the same shapes and sizes as the pencil/eraser tool. You can create new selections by just using the tool without any additional keys, while cmd/ctrl adds to the current selection and shift removes from the current selection.

After a selection is made, cmd/ctrl + t will cut and transform the current selection, cmd/ctrl + x will cut the selection or cmd/ctrl + c will copy the selection for pasting with cmd/ctrl + v.

If you have any suggestions for changes here, I'd love to hear them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant