Skip to content

Conversation

bjorn
Copy link
Member

@bjorn bjorn commented Sep 19, 2023

Feature requested by elvisish, but can't be merged like this. Instead, the mouse interaction in general would need to be made more configurable.

This change currently leaves no way to capture a stamp from the map when the Stamp Brush is selected.

@eishiya
Copy link
Contributor

eishiya commented Sep 19, 2023

I'm curious why this behaviour couldn't be added as e.g. Alt + right click, without a need for additional user configuration? When using right click, none of the modifier keys seem to do anything except break drag behaviour, so they seem free to use.

(I find the right-click sampling behaviour very useful, so of course I hope to see it stay xP)

@bjorn
Copy link
Member Author

bjorn commented Sep 19, 2023

I'm curious why this behaviour couldn't be added as e.g. Alt + right click, without a need for additional user configuration?

Hmm, you're right, Alt+Right-click is still free for all the relevant tools. It's worth considering.

@elvisish
Copy link

elvisish commented Sep 19, 2023

I'm curious why this behaviour couldn't be added as e.g. Alt + right click, without a need for additional user configuration?

Hmm, you're right, Alt+Right-click is still free for all the relevant tools. It's worth considering.

Because my tilemapping muscle-memory instinct is to just right-click, I'd never be able to convert to having to remember to press alt as well (and if it were a configurable option, I'd also never choose alt+)

@eishiya
Copy link
Contributor

eishiya commented Sep 19, 2023

I'm certainly not against more options xP And if there's an option, maybe the other behaviour can be available with alt. That way, those of us with right-click sample muscle memory from using Tiled can also be happy, and access the new feature easily.

@bjorn
Copy link
Member Author

bjorn commented Sep 26, 2023

@elvisish I've fixed the clearing of the stamp on right-click erase. New builds will soon be available at https://github.com/mapeditor/tiled/actions/runs/6309399827?pr=3821.

@elvisish
Copy link

@elvisish I've fixed the clearing of the stamp on right-click erase. New builds will soon be available at https://github.com/mapeditor/tiled/actions/runs/6309399827?pr=3821.

Thankyou!

@bjorn bjorn force-pushed the stamp-brush-right-click-erase branch from 18a0a4e to 287798f Compare June 17, 2024 13:38
@bjorn
Copy link
Member Author

bjorn commented Jun 17, 2024

@elvisish I've updated this PR with all the changes that happened since October last year, just in case you wanted the benefit of any new features / fixes in addition to this change.

The change has also gotten a lot smaller, thanks to a small refactoring as part of the addition of "Cut Stamp" on Shift+Right-Click in #3963. If you would be able to get used to it, this new "Cut Stamp" action on Shift+Right-Click might be an alternative for you, though on the other hand, it does also change the stamp to the area that was cut, which might not be desired.

New builds should soon be available at https://github.com/mapeditor/tiled/actions/runs/9548746873?pr=3821 (though I see the macOS builds were cancelled due to the macOS-11 environment being deprecated).

@elvisish
Copy link

@elvisish I've updated this PR with all the changes that happened since October last year, just in case you wanted the benefit of any new features / fixes in addition to this change.

The change has also gotten a lot smaller, thanks to a small refactoring as part of the addition of "Cut Stamp" on Shift+Right-Click in #3963. If you would be able to get used to it, this new "Cut Stamp" action on Shift+Right-Click might be an alternative for you, though on the other hand, it does also change the stamp to the area that was cut, which might not be desired.

New builds should soon be available at https://github.com/mapeditor/tiled/actions/runs/9548746873?pr=3821 (though I see the macOS builds were cancelled due to the macOS-11 environment being deprecated).

Thanks, I'll give that a try, I'm not sure if it's possible to rebind the keys yet so right-click can be redefined for any purpose?

@bjorn
Copy link
Member Author

bjorn commented Jun 17, 2024

I'm not sure if it's possible to rebind the keys yet so right-click can be redefined for any purpose?

Unfortunately not. If you need pure erasing on right-click, you'd need to use a build from this pull request.

@bjorn bjorn force-pushed the stamp-brush-right-click-erase branch from 287798f to c8e501b Compare April 7, 2025 07:05
Feature requested by elvisish, but can't be merged like this. Instead,
the mouse interaction in general would need to be made more
configurable.

This change currently leaves no way to capture a stamp from the map.
@bjorn bjorn force-pushed the stamp-brush-right-click-erase branch from c8e501b to 573bf3e Compare April 7, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants