-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Scripting: the API for getting PropertyTypes #3419
Comments
Yes would love this feature too, for a work around I'm doing this for the moment
Then I am getting the values later on like this
|
I would love if editing PropertyTypes was added to the API. I'd like to create an extension which synchronizes Tiled PropertyTypes with TypeScript enums |
@finscn While it's not entirely trivial yet, now there is an API available for this, for example with the var biome = tiled.activeAsset.resolvedProperty('biome');
var biomeType = tiled.project.findTypeByName(biome.typeName);
var biomeName = biomeType.nameOf(biome);
@Ishadijcks If you get this to work based on the new API I'd love to see your solution! We'd in any case welcome any feedback on the APIs added in #3971 before getting to the Tiled 1.12 release. |
the 1.9 supplies the feature about PropertyTypes.
Bug there is no API for get the PropertyTypes informations.
And I can't get the display name of a custom Enum-Property.
The value of it is number.
So, I hope there could be some APIs for that work.
The text was updated successfully, but these errors were encountered: