mapeditor / tiled

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

Add ability to reorder terrains #1603

Open bjorn opened 7 years ago

bjorn commented 7 years ago

Currently, it is not possible to change the order of the terrains defined in a tileset.

There should be only one difficulty with this, which is that reordering terrains affects the terrain IDs stored on the tiles, which will have to be adjusted accordingly. But this is similar to when a terrain is removed, which is already implemented.

Reported on the forum.

eishiya commented 2 years ago

It seems that the ability to reorder terrains was removed at some point, perhaps when they were merged with Wang tiles? It would be nice to have it back.

bjorn commented 2 years ago

You're right, the ability to reorder Wang colors (and Wang sets) was never implemented, so now this feature is missing again.

UliAbo commented 2 years ago

That would be quite helpful to have! Is this something complicated to be implemented? I would love to see that in, as I have lots of Terrains now in our Project.

bjorn commented 2 years ago

That would be quite helpful to have! Is this something complicated to be implemented? I would love to see that in, as I have lots of Terrains now in our Project.

Unfortunately it's not entirely trivial, since a WangId stores terrain indexes, which will all need updating when we allow terrains to be reordered. Alternatively we could switch to assigning terrain IDs. Either way it's not too complicated either, so I could probably still fit this into 1.9.