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

More plugin interaction for new created maps #299

Closed
ghost opened this issue Oct 15, 2012 · 2 comments
Closed

More plugin interaction for new created maps #299

ghost opened this issue Oct 15, 2012 · 2 comments
Labels
feature It's a feature, not a bug.

Comments

@ghost
Copy link

ghost commented Oct 15, 2012

It would be nice if a plugin could hook into the creation of a new map.

I would like to extend my plugin to be able to fill the world with random background tiles from my tileset

I would also like to set some map properties on map creation.

And last but not least i would like to create some default layers whenever someone creates a new map with my plugin installed.

It would really help me a lot if the plugin api would be a little bit more .... open or extendable.

@bjorn bjorn added the feature It's a feature, not a bug. label Jun 3, 2017
@bjorn bjorn changed the title [REQUEST] More plugin interaction for new created maps More plugin interaction for new created maps Jun 3, 2017
@bjorn
Copy link
Member

bjorn commented Jun 3, 2017

The current plugin approach is very limited and it will be hard to extend this approach much further. Instead, the plan is to make Tiled scriptable (issue #949). The following two things would need to be possible to resolve this issue:

  • Ability to execute a script that fills the world with random background tiles.
  • Ability to hook into a "New Map" event in a script, which sets some properties on the map and creates default layers.

@bjorn
Copy link
Member

bjorn commented Oct 8, 2020

The scripting API that was added in Tiled 1.3 enables both of the above actions, so closing this issue.

@bjorn bjorn closed this as completed Oct 8, 2020
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

No branches or pull requests

1 participant