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

Scripting: Expose "Allowed Transformations" properties #3753

Closed
eishiya opened this issue May 21, 2023 · 0 comments · Fixed by #4100
Closed

Scripting: Expose "Allowed Transformations" properties #3753

eishiya opened this issue May 21, 2023 · 0 comments · Fixed by #4100
Labels
feature It's a feature, not a bug.

Comments

@eishiya
Copy link
Contributor

eishiya commented May 21, 2023

I'd like to write a script that modifies a tileset's "Allowed Transformations", but these properties do not appear to be exposed via the scripting API. Since these properties are shared across the whole tileset, I have to change them frequently based on the Terrains I'm using, and I was hoping to use scripting to automate this.

It would be nice to have these properties exposed, perhaps as Tileset.allowFlipHorizontally, Tileset.allowFlipVertically and Tileset.allowRotate.
Edit: It's probably a good idea to expose the "Prefer Untransformed Tiles" setting too.

If #3016 is implemented, then the Tiles' allowed transformations should be exposed similarly. This would allow users to conditionally set these properties en masse.

@eishiya eishiya added the feature It's a feature, not a bug. label May 21, 2023
@mapeditor mapeditor deleted a comment May 23, 2023
bjorn added a commit that referenced this issue Nov 14, 2024
* add transformationFlags property to EditableTileset
* expose enum options for transformationFlags on EditableTileset, update scripting doc
* add since tag to scripting doc, fix spacing
* Updated NEWS.md

Closes #3753

---------

Co-authored-by: Thorbjørn Lindeijer <bjorn@lindeijer.nl>
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

Successfully merging a pull request may close this issue.

1 participant