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

Bind layers tilesets #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MadEwink
Copy link

Hello !

This extension aims to bind tile layers to tilesets based on their names.
I'm not a javascript dev, and am pretty new to contributing to external projects, so if you have any suggestions on the code, the comments, or on this PR, I will gladly listen.

The linter returned without any prompt on the last commit.

I use Tiled every now and then, and was in need of such a binding, to spare a few clicks, but also to prevent myself from forgetting to change layer before editing, wasting a lot of time doing it on a wring layer.
A few days ago, I decided to take some time to actually try and develop the extension myself, and as a perfect coincidence, stumbled upon this issue mapeditor/tiled#3256, providing me with the extra boost I needed to do it.

Adrien Floriant added 2 commits April 11, 2022 14:11
Better description
Fix linter errors
  Add comment global tiled
  Replace CRLF by LF
  Replace some spaces by tabs
  Add missing let in for loop
@MadEwink
Copy link
Author

MadEwink commented May 16, 2022

Thinking back, even though binding tilesets to tile layers through their names is exactly what I needed, and probably what most people could work with, it would be much better to let users define what their bindings should look like.

I'm thinking about using matching rules, probably allowing regular expressions, that could be stored in a file.

This change would probably require the creation of a menu with options for more flexibility.

As I see it, the tool would have a default behaviour, which matches on exact same name, and it would be possible to deactivate that in the options in order to customize it with a project based configuration file.

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.

1 participant