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

Custom properties on the project #2903

Closed
bjorn opened this issue Sep 29, 2020 · 2 comments · Fixed by #3667
Closed

Custom properties on the project #2903

bjorn opened this issue Sep 29, 2020 · 2 comments · Fixed by #3667
Labels
feature It's a feature, not a bug.
Milestone

Comments

@bjorn
Copy link
Member

bjorn commented Sep 29, 2020

It should probably be possible to set custom properties on the project, mostly for extension purposes.

Split off from #1665.

@bjorn bjorn added the feature It's a feature, not a bug. label Sep 29, 2020
@bjorn bjorn added this to the Tiled 1.6 milestone Oct 7, 2020
@elmm
Copy link

elmm commented Oct 8, 2020

It would be nice to have some custom properties that are either not visible or not editable for a user. For example, in my case, I have my custom map format exporter/importer and I need to store some format-specific data for the loaded map to be able to save it properly. Now I'm using properties for this purpose but if it changed by a user it will break an export process. Also, it looks not nice when you have some staff that you shouldn't suppose to touch.

(It also can be some properties naming convention as well - e.g. properties starting with "__" not shown in the property tab).

PS: I tried to add custom fields to the TileMap object in JavaScript but it looks like the JavaScript wrapper around C++ Map object is not persistent and lives only while read/write is executed so that fields don't survive between calls.

@bjorn bjorn added this to Roadmap Mar 21, 2023
@bjorn bjorn moved this to Todo in Roadmap Mar 21, 2023
@bjorn bjorn moved this from Todo to In Progress in Roadmap Jun 12, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Roadmap Jun 28, 2023
@bjorn
Copy link
Member Author

bjorn commented Jun 28, 2023

It would be nice to have some custom properties that are either not visible or not editable for a user.

While project properties have now been implemented, this use-case isn't covered yet. However, in the meantime we have issue #3245 for tracking that feature.

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
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants