{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7","id":69257390,"html_url":"https://github.com/narc0tiq/WrenchFu/pull/7","diff_url":"https://github.com/narc0tiq/WrenchFu/pull/7.diff","patch_url":"https://github.com/narc0tiq/WrenchFu/pull/7.patch","issue_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/7","number":7,"state":"open","locked":false,"title":"[WIP] More configurability","user":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"body":"This implements the changes referenced in <https://github.com/narc0tiq/WrenchFu/pull/6#issuecomment-216816366>:\r\n\r\n* [x] Adds an optional `options` parameter to `interface.register`, which allows consuming mods to change how their wrenching gets handled. This is a table with string keys that may contain the following keys:\r\n  * `proximity_distance` (default 6): changes the distance that's counted as \"too far to keep the GUI open\";\r\n  * `wants_entity` (default: false): pass an entity instead of a name and position to `show_function`;\r\n  * `wants_player` (default: false): pass a player instead of an index to `show_function`.\r\n\r\n* [x] Allows the consumer to pass `nil` for their `hide_function`, which makes `ignores_close` unnecessary.\r\n\r\n* [ ] Allows consumers to register for all wrench clicks, regardless of what entities they hit (optionally including hitting no entities at all)\r\n\r\n* [ ] Allows consumers to register to be notified when a player leaves proximity of an entity (optionally including defining what distance \"proximity\" means)\r\n\r\nThese changes are all backwards-compatible: existing consumers need not change.\r\n\r\nThere is also an update of the demonstrator mod (link forthcoming), using all of the variants that can now be implemented.","created_at":"2016-05-08T00:56:29Z","updated_at":"2016-05-08T00:56:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7/commits","review_comments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7/comments","review_comment_url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/7/comments","statuses_url":"https://api.github.com/repos/narc0tiq/WrenchFu/statuses/f5f8c22285755893aa20eb4ef0f41a76f4e673e5","head":{"label":"narc0tiq:two-point-oh","ref":"two-point-oh","sha":"f5f8c22285755893aa20eb4ef0f41a76f4e673e5","user":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"repo":{"id":41293953,"name":"WrenchFu","full_name":"narc0tiq/WrenchFu","owner":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/narc0tiq/WrenchFu","description":"A Factorio mod adding a wrench that triggers custom GUIs","fork":false,"url":"https://api.github.com/repos/narc0tiq/WrenchFu","forks_url":"https://api.github.com/repos/narc0tiq/WrenchFu/forks","keys_url":"https://api.github.com/repos/narc0tiq/WrenchFu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/narc0tiq/WrenchFu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/narc0tiq/WrenchFu/teams","hooks_url":"https://api.github.com/repos/narc0tiq/WrenchFu/hooks","issue_events_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/events{/number}","events_url":"https://api.github.com/repos/narc0tiq/WrenchFu/events","assignees_url":"https://api.github.com/repos/narc0tiq/WrenchFu/assignees{/user}","branches_url":"https://api.github.com/repos/narc0tiq/WrenchFu/branches{/branch}","tags_url":"https://api.github.com/repos/narc0tiq/WrenchFu/tags","blobs_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/refs{/sha}","trees_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/narc0tiq/WrenchFu/statuses/{sha}","languages_url":"https://api.github.com/repos/narc0tiq/WrenchFu/languages","stargazers_url":"https://api.github.com/repos/narc0tiq/WrenchFu/stargazers","contributors_url":"https://api.github.com/repos/narc0tiq/WrenchFu/contributors","subscribers_url":"https://api.github.com/repos/narc0tiq/WrenchFu/subscribers","subscription_url":"https://api.github.com/repos/narc0tiq/WrenchFu/subscription","commits_url":"https://api.github.com/repos/narc0tiq/WrenchFu/commits{/sha}","git_commits_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/commits{/sha}","comments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/comments{/number}","issue_comment_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/comments{/number}","contents_url":"https://api.github.com/repos/narc0tiq/WrenchFu/contents/{+path}","compare_url":"https://api.github.com/repos/narc0tiq/WrenchFu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/narc0tiq/WrenchFu/merges","archive_url":"https://api.github.com/repos/narc0tiq/WrenchFu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/narc0tiq/WrenchFu/downloads","issues_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues{/number}","pulls_url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls{/number}","milestones_url":"https://api.github.com/repos/narc0tiq/WrenchFu/milestones{/number}","notifications_url":"https://api.github.com/repos/narc0tiq/WrenchFu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/narc0tiq/WrenchFu/labels{/name}","releases_url":"https://api.github.com/repos/narc0tiq/WrenchFu/releases{/id}","deployments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/deployments","created_at":"2015-08-24T09:18:23Z","updated_at":"2016-05-04T01:52:06Z","pushed_at":"2016-05-08T00:39:44Z","git_url":"git://github.com/narc0tiq/WrenchFu.git","ssh_url":"git@github.com:narc0tiq/WrenchFu.git","clone_url":"https://github.com/narc0tiq/WrenchFu.git","svn_url":"https://github.com/narc0tiq/WrenchFu","homepage":null,"size":27,"stargazers_count":1,"watchers_count":1,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"narc0tiq:master","ref":"master","sha":"549ba72b2ed91512362cdeb5c2dfa51434440593","user":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"repo":{"id":41293953,"name":"WrenchFu","full_name":"narc0tiq/WrenchFu","owner":{"login":"narc0tiq","id":591573,"avatar_url":"https://avatars.githubusercontent.com/u/591573?v=3","gravatar_id":"","url":"https://api.github.com/users/narc0tiq","html_url":"https://github.com/narc0tiq","followers_url":"https://api.github.com/users/narc0tiq/followers","following_url":"https://api.github.com/users/narc0tiq/following{/other_user}","gists_url":"https://api.github.com/users/narc0tiq/gists{/gist_id}","starred_url":"https://api.github.com/users/narc0tiq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/narc0tiq/subscriptions","organizations_url":"https://api.github.com/users/narc0tiq/orgs","repos_url":"https://api.github.com/users/narc0tiq/repos","events_url":"https://api.github.com/users/narc0tiq/events{/privacy}","received_events_url":"https://api.github.com/users/narc0tiq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/narc0tiq/WrenchFu","description":"A Factorio mod adding a wrench that triggers custom GUIs","fork":false,"url":"https://api.github.com/repos/narc0tiq/WrenchFu","forks_url":"https://api.github.com/repos/narc0tiq/WrenchFu/forks","keys_url":"https://api.github.com/repos/narc0tiq/WrenchFu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/narc0tiq/WrenchFu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/narc0tiq/WrenchFu/teams","hooks_url":"https://api.github.com/repos/narc0tiq/WrenchFu/hooks","issue_events_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/events{/number}","events_url":"https://api.github.com/repos/narc0tiq/WrenchFu/events","assignees_url":"https://api.github.com/repos/narc0tiq/WrenchFu/assignees{/user}","branches_url":"https://api.github.com/repos/narc0tiq/WrenchFu/branches{/branch}","tags_url":"https://api.github.com/repos/narc0tiq/WrenchFu/tags","blobs_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/refs{/sha}","trees_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/narc0tiq/WrenchFu/statuses/{sha}","languages_url":"https://api.github.com/repos/narc0tiq/WrenchFu/languages","stargazers_url":"https://api.github.com/repos/narc0tiq/WrenchFu/stargazers","contributors_url":"https://api.github.com/repos/narc0tiq/WrenchFu/contributors","subscribers_url":"https://api.github.com/repos/narc0tiq/WrenchFu/subscribers","subscription_url":"https://api.github.com/repos/narc0tiq/WrenchFu/subscription","commits_url":"https://api.github.com/repos/narc0tiq/WrenchFu/commits{/sha}","git_commits_url":"https://api.github.com/repos/narc0tiq/WrenchFu/git/commits{/sha}","comments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/comments{/number}","issue_comment_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/comments{/number}","contents_url":"https://api.github.com/repos/narc0tiq/WrenchFu/contents/{+path}","compare_url":"https://api.github.com/repos/narc0tiq/WrenchFu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/narc0tiq/WrenchFu/merges","archive_url":"https://api.github.com/repos/narc0tiq/WrenchFu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/narc0tiq/WrenchFu/downloads","issues_url":"https://api.github.com/repos/narc0tiq/WrenchFu/issues{/number}","pulls_url":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls{/number}","milestones_url":"https://api.github.com/repos/narc0tiq/WrenchFu/milestones{/number}","notifications_url":"https://api.github.com/repos/narc0tiq/WrenchFu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/narc0tiq/WrenchFu/labels{/name}","releases_url":"https://api.github.com/repos/narc0tiq/WrenchFu/releases{/id}","deployments_url":"https://api.github.com/repos/narc0tiq/WrenchFu/deployments","created_at":"2015-08-24T09:18:23Z","updated_at":"2016-05-04T01:52:06Z","pushed_at":"2016-05-08T00:39:44Z","git_url":"git://github.com/narc0tiq/WrenchFu.git","ssh_url":"git@github.com:narc0tiq/WrenchFu.git","clone_url":"https://github.com/narc0tiq/WrenchFu.git","svn_url":"https://github.com/narc0tiq/WrenchFu","homepage":null,"size":27,"stargazers_count":1,"watchers_count":1,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7"},"html":{"href":"https://github.com/narc0tiq/WrenchFu/pull/7"},"issue":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/7"},"comments":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/narc0tiq/WrenchFu/statuses/f5f8c22285755893aa20eb4ef0f41a76f4e673e5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":109,"deletions":39,"changed_files":4}}