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

Access Wang Colors from scripts #3110

Closed
bendmorris opened this issue Jul 22, 2021 · 1 comment
Closed

Access Wang Colors from scripts #3110

bendmorris opened this issue Jul 22, 2021 · 1 comment

Comments

@bendmorris
Copy link

bendmorris commented Jul 22, 2021

I'm using a custom JS map exporter which infers map attributes from each tile's terrain information. Currently I can access the wang ID for a given tile as color indices, but can't look up the name, properties, or color value of the wang color at that index. It looks like the WangSet type is exposed to JS but the WangColor type is not.

Edit to add: just want to give a shoutout - I've been using the scripting features of Tiled since the Python days, and holy cow have they come a long way. The experience developing plugins in Typescript now is fantastic. Thanks for all the great work!

@bjorn
Copy link
Member

bjorn commented Jul 22, 2021

First of all, it's great to hear you appreciate the scripting features!

Regarding the missing API for Wang colors, it's something I was aware of but I didn't want it to hold up the 1.5 release. There is issue #2663 open about it, but so far nobody had missed it. I'll make sure to have a look at adding this soon.

@bjorn bjorn closed this as completed Jul 22, 2021
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

No branches or pull requests

2 participants