Apply automap rules on all layers #429

Open
Birmania opened this Issue May 2, 2013 · 1 comment

Projects

None yet

3 participants

@Birmania

Hi, (Again)

I read the entire documentation about Automapping with Tiled but I do not find the answer to my question.

Is there any way to search the input layer pattern through all layers of the map. Like having an input layer name as input_* instead of input_background.

This would be very useful for the maintenance instead of copying it as many time as number of map layers.

Best regards,
Birmania

@stefanbeller

To fix this we would need to look into
AutoMapper::applyRule

            foreach (const QString &name, ii.names) {
                const int i = mMapWork->indexOfLayer(name, Layer::TileLayerType);

and replace indexOfLayer with a smarter comparison (e.g. a regex parser to yield all layers that match), see discussion in #662 as well.

@bjorn bjorn added the Feature label May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment