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

Add Tile Reference Properties #3235

Open
aleokdev opened this issue Jan 14, 2022 · 1 comment
Open

Add Tile Reference Properties #3235

aleokdev opened this issue Jan 14, 2022 · 1 comment
Labels
feature It's a feature, not a bug.

Comments

@aleokdev
Copy link

From mapeditor/rs-tiled#123 (comment):

Tile references would be really useful as custom properties. Without them, you can either use GIDs or a custom formatted string, however, both approaches have their downsides:

  • GIDs are meant to be an internal artefact and one should not rely on them being constant, plus they are only valid in a map context.
  • Custom formatted strings require a custom parser and have no editor validation.

It would be really nice if there was a custom property type that allowed selecting a tile from a specific tileset (in a map context) or selecting a tile from the current tileset (in a tileset context). It could be then serialized as a GID or local tile ID which could be parsed by the library you are using.

@bjorn bjorn added the feature It's a feature, not a bug. label Jan 14, 2022
@bjorn
Copy link
Member

bjorn commented Mar 16, 2022

The changes done to add the "object" property should be helpful as a reference when implementing this: #2712

Maybe something similar to the ObjectRefDialog will be necessary here, but using a tileset view instead, probably with an additional dropdown to select the tileset to reference. Alternatively, the implementation will need to integrate with the existing tileset view in both the map editor and the tileset editor, to allow selecting the tile from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants