{"action":"created","issue":{"url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/6","labels_url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/6/comments","events_url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/6/events","html_url":"https://github.com/Zielak/AutoTerrainGen/pull/6","id":112885613,"number":6,"title":"Web Support ( Zielak/AutoTerrainGen#5 )","user":{"login":"FuzzyWuzzie","id":894782,"avatar_url":"https://avatars.githubusercontent.com/u/894782?v=3","gravatar_id":"","url":"https://api.github.com/users/FuzzyWuzzie","html_url":"https://github.com/FuzzyWuzzie","followers_url":"https://api.github.com/users/FuzzyWuzzie/followers","following_url":"https://api.github.com/users/FuzzyWuzzie/following{/other_user}","gists_url":"https://api.github.com/users/FuzzyWuzzie/gists{/gist_id}","starred_url":"https://api.github.com/users/FuzzyWuzzie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuzzyWuzzie/subscriptions","organizations_url":"https://api.github.com/users/FuzzyWuzzie/orgs","repos_url":"https://api.github.com/users/FuzzyWuzzie/repos","events_url":"https://api.github.com/users/FuzzyWuzzie/events{/privacy}","received_events_url":"https://api.github.com/users/FuzzyWuzzie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-22T20:32:00Z","updated_at":"2015-10-23T20:12:34Z","closed_at":"2015-10-23T20:07:15Z","pull_request":{"url":"https://api.github.com/repos/Zielak/AutoTerrainGen/pulls/6","html_url":"https://github.com/Zielak/AutoTerrainGen/pull/6","diff_url":"https://github.com/Zielak/AutoTerrainGen/pull/6.diff","patch_url":"https://github.com/Zielak/AutoTerrainGen/pull/6.patch"},"body":"Added support for running in web. When adding input files, uses a file picker to get them one-by-one. When saving output files, uses FileSaver.js to \"download\" them.\r\n\r\nAdded 3 javascript libraries:\r\n\r\n* [fireEvent](http://jsfiddle.net/mendesjuan/rHMCy/4/) (for opening a file open dialog)\r\n* [pako](https://github.com/nodeca/pako) (for `delate`ing the png data)\r\n* [FileSaver](https://github.com/eligrey/FileSaver.js) (for \"downloading\" the output files)\r\n\r\nWhich require two haxe extern libraries to be installed:\r\n\r\n* `haxelib install FileSaver`\r\n* `haxelib install pako`"},"comment":{"url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/comments/150678382","html_url":"https://github.com/Zielak/AutoTerrainGen/pull/6#issuecomment-150678382","issue_url":"https://api.github.com/repos/Zielak/AutoTerrainGen/issues/6","id":150678382,"user":{"login":"Zielak","id":625693,"avatar_url":"https://avatars.githubusercontent.com/u/625693?v=3","gravatar_id":"","url":"https://api.github.com/users/Zielak","html_url":"https://github.com/Zielak","followers_url":"https://api.github.com/users/Zielak/followers","following_url":"https://api.github.com/users/Zielak/following{/other_user}","gists_url":"https://api.github.com/users/Zielak/gists{/gist_id}","starred_url":"https://api.github.com/users/Zielak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zielak/subscriptions","organizations_url":"https://api.github.com/users/Zielak/orgs","repos_url":"https://api.github.com/users/Zielak/repos","events_url":"https://api.github.com/users/Zielak/events{/privacy}","received_events_url":"https://api.github.com/users/Zielak/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T20:12:34Z","updated_at":"2015-10-23T20:12:34Z","body":"Awesome work!\r\n\r\nThe only quirk that I've discovered was when I tried exporting changed terrain files for the second time. Chrome would download the same files with different names, eg. \"output (1).png\" and \"output.tsx\", but the TSX file still refers to the \"output.png\" (which is the first generated terrain). Tiled displays old texture, but with the new tilesets naming in \"Terains\" panel.\r\n\r\nOn desktop this doesn't happen, because old files are overriden.\r\n\r\nI'm gonna add a \"filename\" text field, which on web would change to prevent TSX from getting old texture (every time we hit GENERATE and/or Export).\r\n\r\nThanks for the help! :crown: "}}