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 API needs to provide access to Wang colors #2663

Open
bjorn opened this issue Nov 12, 2019 · 1 comment
Open

Scripting API needs to provide access to Wang colors #2663

bjorn opened this issue Nov 12, 2019 · 1 comment
Assignees
Labels
missing feature It's not just a feature, it's a feature that really should be there!

Comments

@bjorn
Copy link
Member

bjorn commented Nov 12, 2019

The Wang sets, which are part of a tileset, are currently only minimally exposed through the scripting API (#949). In particular, no access is provided to the properties of the Wang colors (terrains).

@bjorn bjorn added the missing feature It's not just a feature, it's a feature that really should be there! label Nov 12, 2019
@bjorn bjorn self-assigned this Sep 22, 2020
bjorn added a commit that referenced this issue Sep 22, 2020
Scripts can now add/remove Wang sets, change their properties and change
the Wang IDs of tiles in the set. No access exists yet to the Wang
colors.

Issue #2663
bjorn added a commit that referenced this issue Sep 22, 2020
Scripts can now add/remove Wang sets, change their properties and change
the Wang IDs of tiles in the set. No access exists yet to the Wang
colors.

Issue #2663
@bjorn bjorn added this to the Tiled 1.5 milestone Sep 29, 2020
@bjorn bjorn changed the title Scripting API needs to provide access to Wang sets Scripting API needs to provide access to Wang colors Apr 1, 2021
bjorn added a commit that referenced this issue Jan 18, 2022
* Added MapEditor.currentWangSet (and currentWangSetChanged)
* Added MapEditor.currentWangColorIndex (and currentWangColorIndexChanged)
* Added WangSet.colorName(colorIndex: number) : string
* Added WangSet.setColorName(colorIndex: number, name: string)

This resolves part of issue #2663.
@eishiya
Copy link
Contributor

eishiya commented Nov 16, 2023

Bumping this because I'd like this for one of my scripts (along with Allowed Transformations, which is covered by a different issue).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing feature It's not just a feature, it's a feature that really should be there!
Projects
None yet
Development

No branches or pull requests

2 participants