Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Allow loading a TSX file from Python plugins #2085
This pull request adds a method to the Python API,
The use case I'm thinking of is embedding the path to a specific version of a TSX in a map format, then attempting to resolve it when the map is loaded in Tiled, and sharing the same TSX across multiple map files. The data system we have may support several groups of tiles loaded from outside sources like mods which can be enabled and disabled, so I was thinking about pregenerating a TSX for a single supported configuration of enabled/disabled mods, caching the tile images somewhere, and allowing them to be used in the editor.
Thanks for your patch! It definitely makes sense for the Python plugins to be able to load external tilesets while loading a map.
Since generally we want to avoid loading the same tileset multiple times, there is the