mapeditor / tiled

Flexible level editor
https://www.mapeditor.org/
Other
11.08k stars 1.75k forks source link

Allow larger Stamp Brush size #3200

Open eishiya opened 2 years ago

eishiya commented 2 years ago

When painting with the Stamp Brush with a single tile or in Random mode, it's often desirable to paint a larger area that's very tedious to do a tile at a time. The Shape Fill Tool can help, but isn't very intuitive since you can't make brush strokes with it.

It would be useful to be able to increase the brush size in this scenario, painting with multiple copies of the tile at once, in a circular shape. The brush size should be controllable with hotkeys and a slider.

When the user's brush consists of multiple tiles and is not in Random mode, then the size should be ignored, and the brush should be in "stamp" mode. If possible, the size slider should be greyed out in this mode, with a tool tip explaining why it's not available. Or, for a simpler UI, the entire stamp could be repeated in the same shape as the brush, requiring the user to go back to the 1x1 brush to place it normally. I don't know which is more intuitive.

Current solutions/workarounds to this problem:

If this is implemented, perhaps the same ideas can be applied to the Terrain tool (#2035).

bjorn commented 2 years ago

Rather than to implement this as some kind of option that allows setting the size of the Stamp Brush, it might be better to consider this a separate tool, potentially just called "Paintbrush". It would behave more like the shape fill tools, but allowing brush strokes. Of course either way we need to duplicate some code or do some refactoring to share the common functionality, like drawing of lines and circles.

If this is implemented, perhaps the same ideas can be applied to the Terrain tool (#2035).

Right, of course we then shouldn't end up with another paintbrush for drawing terrain, so at the same time we need to fix the "Terrain Fill Mode" to only paint with the selected terrain and not randomize the whole set (possibly, except when both "Terrain Fill Mode" and "Random Mode" are checked - or allow multi-select for terrains and randomize when multiple are selected, but that probably gets a little involved).

eishiya commented 2 years ago

I think a separate Paint Brush tool makes sense, especially if we get these Terrain/Random mode changes. I think only randomizing terrain when both "Terrain Fill Mode" and "Random Mode" are selected is a good option for that.

steven1522 commented 8 months ago

Any chance this was ever added? Found this looking to find a solution after struggling through 1 by 1 tile painting!

eishiya commented 8 months ago

There's a good chance it might be added, but probably not any time soon as there are many more higher-priority features that still need to be added. If there had been progress made, you'd have seen it here.

For now, we'll have to content ourselves with the workarounds I mentioned in the first post. Perhaps I could try writing the scripted tool I mentioned... If I do, I'll post about it here.