mapeditor/tiled


Do you want to work on this issue?
You can request for a bounty in order to promote it!
Add map.fileName in tiled.registerMapFormat -> write #3911
cupen posted onGitHub
Is your feature request related to a problem? Please describe. Sometimes I need to get the file name of tiledmap when export.
Describe the solution you'd like
tiled.registerMapFormat("Custom Export", {
name: "Custom Export",
extension: "json2",
write: function(map, fileName) {
tiled.log("map.fileName = " + map.fileName)
}
});