{"action":"created","comment":{"url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/comments/57533617","id":57533617,"diff_hunk":"@@ -0,0 +1,47 @@\n+/*******************************************************************************\n+ * Copyright (c) 2016\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"),\n+ * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n+ * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\n+ * DEALINGS IN THE SOFTWARE.\n+ *******************************************************************************/\n+package jsettlers.main.swing.menu.general;\n+\n+import jsettlers.main.swing.lookandfeel.ELFStyle;\n+\n+/**\n+ * Slider to select volume in settings\n+ * \n+ * @author Andreas Butti\n+ */\n+public class VolumeSlider extends SettlerSlider {\n+\tprivate static final long serialVersionUID = 1L;\n+\n+\t/**\n+\t * Constructor","path":"jsettlers.main.swing/src/jsettlers/main/swing/menu/general/VolumeSlider.java","position":28,"original_position":28,"commit_id":"dfeefafc646c52d972848455bef4c1784f7a780b","original_commit_id":"6357e5936b50c0c6cd530da7d1f429911c8a92fd","user":{"login":"andreasb242","id":822958,"avatar_url":"https://avatars.githubusercontent.com/u/822958?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasb242","html_url":"https://github.com/andreasb242","followers_url":"https://api.github.com/users/andreasb242/followers","following_url":"https://api.github.com/users/andreasb242/following{/other_user}","gists_url":"https://api.github.com/users/andreasb242/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasb242/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasb242/subscriptions","organizations_url":"https://api.github.com/users/andreasb242/orgs","repos_url":"https://api.github.com/users/andreasb242/repos","events_url":"https://api.github.com/users/andreasb242/events{/privacy}","received_events_url":"https://api.github.com/users/andreasb242/received_events","type":"User","site_admin":false},"body":"@codingberlin \r\nIt's your pull request, can you may add:\r\n\r\n> This slider is technically based on a progress bar, but looks and works like the production\r\n> sliders in the original game. (blue bars)\r\n> The slider lets the user select a value from 0 to 100%, the value is also displayed as string","created_at":"2016-03-27T19:37:01Z","updated_at":"2016-03-27T19:37:01Z","html_url":"https://github.com/jsettlers/settlers-remake/pull/313#discussion_r57533617","pull_request_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/comments/57533617"},"html":{"href":"https://github.com/jsettlers/settlers-remake/pull/313#discussion_r57533617"},"pull_request":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313","id":63336863,"html_url":"https://github.com/jsettlers/settlers-remake/pull/313","diff_url":"https://github.com/jsettlers/settlers-remake/pull/313.diff","patch_url":"https://github.com/jsettlers/settlers-remake/pull/313.patch","issue_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/313","number":313,"state":"open","locked":false,"title":"New Swing Main Menu (fixing #268)","user":{"login":"andreas-eberle","id":9267365,"avatar_url":"https://avatars.githubusercontent.com/u/9267365?v=3","gravatar_id":"","url":"https://api.github.com/users/andreas-eberle","html_url":"https://github.com/andreas-eberle","followers_url":"https://api.github.com/users/andreas-eberle/followers","following_url":"https://api.github.com/users/andreas-eberle/following{/other_user}","gists_url":"https://api.github.com/users/andreas-eberle/gists{/gist_id}","starred_url":"https://api.github.com/users/andreas-eberle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreas-eberle/subscriptions","organizations_url":"https://api.github.com/users/andreas-eberle/orgs","repos_url":"https://api.github.com/users/andreas-eberle/repos","events_url":"https://api.github.com/users/andreas-eberle/events{/privacy}","received_events_url":"https://api.github.com/users/andreas-eberle/received_events","type":"User","site_admin":false},"body":"This is the implementation of #268.\r\n\r\nThe code should be feature complete and will now be reviewed. Please try out the new UI and help to find bugs. Plese note the following limitations.\r\n\r\n**Limitations**\r\n* Multiplayer does not support many of the features you can configure in single player\r\n* The game logic cannot handle peace time and teams yet. This will be implemented later.","created_at":"2016-03-18T07:27:03Z","updated_at":"2016-03-27T19:37:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1df08957ec116b0ff09229c43b4639c80f28419e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313/commits","review_comments_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313/comments","review_comment_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/313/comments","statuses_url":"https://api.github.com/repos/jsettlers/settlers-remake/statuses/dfeefafc646c52d972848455bef4c1784f7a780b","head":{"label":"jsettlers:new_swing_gui","ref":"new_swing_gui","sha":"dfeefafc646c52d972848455bef4c1784f7a780b","user":{"login":"jsettlers","id":10380489,"avatar_url":"https://avatars.githubusercontent.com/u/10380489?v=3","gravatar_id":"","url":"https://api.github.com/users/jsettlers","html_url":"https://github.com/jsettlers","followers_url":"https://api.github.com/users/jsettlers/followers","following_url":"https://api.github.com/users/jsettlers/following{/other_user}","gists_url":"https://api.github.com/users/jsettlers/gists{/gist_id}","starred_url":"https://api.github.com/users/jsettlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsettlers/subscriptions","organizations_url":"https://api.github.com/users/jsettlers/orgs","repos_url":"https://api.github.com/users/jsettlers/repos","events_url":"https://api.github.com/users/jsettlers/events{/privacy}","received_events_url":"https://api.github.com/users/jsettlers/received_events","type":"Organization","site_admin":false},"repo":{"id":25301488,"name":"settlers-remake","full_name":"jsettlers/settlers-remake","owner":{"login":"jsettlers","id":10380489,"avatar_url":"https://avatars.githubusercontent.com/u/10380489?v=3","gravatar_id":"","url":"https://api.github.com/users/jsettlers","html_url":"https://github.com/jsettlers","followers_url":"https://api.github.com/users/jsettlers/followers","following_url":"https://api.github.com/users/jsettlers/following{/other_user}","gists_url":"https://api.github.com/users/jsettlers/gists{/gist_id}","starred_url":"https://api.github.com/users/jsettlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsettlers/subscriptions","organizations_url":"https://api.github.com/users/jsettlers/orgs","repos_url":"https://api.github.com/users/jsettlers/repos","events_url":"https://api.github.com/users/jsettlers/events{/privacy}","received_events_url":"https://api.github.com/users/jsettlers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jsettlers/settlers-remake","description":"A Remake of \"The Settlers III\" for Windows, Linux, Mac and Android","fork":false,"url":"https://api.github.com/repos/jsettlers/settlers-remake","forks_url":"https://api.github.com/repos/jsettlers/settlers-remake/forks","keys_url":"https://api.github.com/repos/jsettlers/settlers-remake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsettlers/settlers-remake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsettlers/settlers-remake/teams","hooks_url":"https://api.github.com/repos/jsettlers/settlers-remake/hooks","issue_events_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/events{/number}","events_url":"https://api.github.com/repos/jsettlers/settlers-remake/events","assignees_url":"https://api.github.com/repos/jsettlers/settlers-remake/assignees{/user}","branches_url":"https://api.github.com/repos/jsettlers/settlers-remake/branches{/branch}","tags_url":"https://api.github.com/repos/jsettlers/settlers-remake/tags","blobs_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsettlers/settlers-remake/statuses/{sha}","languages_url":"https://api.github.com/repos/jsettlers/settlers-remake/languages","stargazers_url":"https://api.github.com/repos/jsettlers/settlers-remake/stargazers","contributors_url":"https://api.github.com/repos/jsettlers/settlers-remake/contributors","subscribers_url":"https://api.github.com/repos/jsettlers/settlers-remake/subscribers","subscription_url":"https://api.github.com/repos/jsettlers/settlers-remake/subscription","commits_url":"https://api.github.com/repos/jsettlers/settlers-remake/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsettlers/settlers-remake/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsettlers/settlers-remake/contents/{+path}","compare_url":"https://api.github.com/repos/jsettlers/settlers-remake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsettlers/settlers-remake/merges","archive_url":"https://api.github.com/repos/jsettlers/settlers-remake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsettlers/settlers-remake/downloads","issues_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues{/number}","pulls_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls{/number}","milestones_url":"https://api.github.com/repos/jsettlers/settlers-remake/milestones{/number}","notifications_url":"https://api.github.com/repos/jsettlers/settlers-remake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsettlers/settlers-remake/labels{/name}","releases_url":"https://api.github.com/repos/jsettlers/settlers-remake/releases{/id}","deployments_url":"https://api.github.com/repos/jsettlers/settlers-remake/deployments","created_at":"2014-10-16T12:41:40Z","updated_at":"2016-03-24T16:29:21Z","pushed_at":"2016-03-27T18:49:45Z","git_url":"git://github.com/jsettlers/settlers-remake.git","ssh_url":"git@github.com:jsettlers/settlers-remake.git","clone_url":"https://github.com/jsettlers/settlers-remake.git","svn_url":"https://github.com/jsettlers/settlers-remake","homepage":"http://www.settlers-android-clone.com","size":298000,"stargazers_count":86,"watchers_count":86,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":79,"forks":38,"open_issues":79,"watchers":86,"default_branch":"master"}},"base":{"label":"jsettlers:master","ref":"master","sha":"f4c17bff0303a6d9f676cefb1719b5264f8576b7","user":{"login":"jsettlers","id":10380489,"avatar_url":"https://avatars.githubusercontent.com/u/10380489?v=3","gravatar_id":"","url":"https://api.github.com/users/jsettlers","html_url":"https://github.com/jsettlers","followers_url":"https://api.github.com/users/jsettlers/followers","following_url":"https://api.github.com/users/jsettlers/following{/other_user}","gists_url":"https://api.github.com/users/jsettlers/gists{/gist_id}","starred_url":"https://api.github.com/users/jsettlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsettlers/subscriptions","organizations_url":"https://api.github.com/users/jsettlers/orgs","repos_url":"https://api.github.com/users/jsettlers/repos","events_url":"https://api.github.com/users/jsettlers/events{/privacy}","received_events_url":"https://api.github.com/users/jsettlers/received_events","type":"Organization","site_admin":false},"repo":{"id":25301488,"name":"settlers-remake","full_name":"jsettlers/settlers-remake","owner":{"login":"jsettlers","id":10380489,"avatar_url":"https://avatars.githubusercontent.com/u/10380489?v=3","gravatar_id":"","url":"https://api.github.com/users/jsettlers","html_url":"https://github.com/jsettlers","followers_url":"https://api.github.com/users/jsettlers/followers","following_url":"https://api.github.com/users/jsettlers/following{/other_user}","gists_url":"https://api.github.com/users/jsettlers/gists{/gist_id}","starred_url":"https://api.github.com/users/jsettlers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsettlers/subscriptions","organizations_url":"https://api.github.com/users/jsettlers/orgs","repos_url":"https://api.github.com/users/jsettlers/repos","events_url":"https://api.github.com/users/jsettlers/events{/privacy}","received_events_url":"https://api.github.com/users/jsettlers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jsettlers/settlers-remake","description":"A Remake of \"The Settlers III\" for Windows, Linux, Mac and Android","fork":false,"url":"https://api.github.com/repos/jsettlers/settlers-remake","forks_url":"https://api.github.com/repos/jsettlers/settlers-remake/forks","keys_url":"https://api.github.com/repos/jsettlers/settlers-remake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsettlers/settlers-remake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsettlers/settlers-remake/teams","hooks_url":"https://api.github.com/repos/jsettlers/settlers-remake/hooks","issue_events_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/events{/number}","events_url":"https://api.github.com/repos/jsettlers/settlers-remake/events","assignees_url":"https://api.github.com/repos/jsettlers/settlers-remake/assignees{/user}","branches_url":"https://api.github.com/repos/jsettlers/settlers-remake/branches{/branch}","tags_url":"https://api.github.com/repos/jsettlers/settlers-remake/tags","blobs_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsettlers/settlers-remake/statuses/{sha}","languages_url":"https://api.github.com/repos/jsettlers/settlers-remake/languages","stargazers_url":"https://api.github.com/repos/jsettlers/settlers-remake/stargazers","contributors_url":"https://api.github.com/repos/jsettlers/settlers-remake/contributors","subscribers_url":"https://api.github.com/repos/jsettlers/settlers-remake/subscribers","subscription_url":"https://api.github.com/repos/jsettlers/settlers-remake/subscription","commits_url":"https://api.github.com/repos/jsettlers/settlers-remake/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsettlers/settlers-remake/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsettlers/settlers-remake/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsettlers/settlers-remake/contents/{+path}","compare_url":"https://api.github.com/repos/jsettlers/settlers-remake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsettlers/settlers-remake/merges","archive_url":"https://api.github.com/repos/jsettlers/settlers-remake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsettlers/settlers-remake/downloads","issues_url":"https://api.github.com/repos/jsettlers/settlers-remake/issues{/number}","pulls_url":"https://api.github.com/repos/jsettlers/settlers-remake/pulls{/number}","milestones_url":"https://api.github.com/repos/jsettlers/settlers-remake/milestones{/number}","notifications_url":"https://api.github.com/repos/jsettlers/settlers-remake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsettlers/settlers-remake/labels{/name}","releases_url":"https://api.github.com/repos/jsettlers/settlers-remake/releases{/id}","deployments_url":"https://api.github.com/repos/jsettlers/settlers-remake/deployments","created_at":"2014-10-16T12:41:40Z","updated_at":"2016-03-24T16:29:21Z","pushed_at":"2016-03-27T18:49:45Z","git_url":"git://github.com/jsettlers/settlers-remake.git","ssh_url":"git@github.com:jsettlers/settlers-remake.git","clone_url":"https://github.com/jsettlers/settlers-remake.git","svn_url":"https://github.com/jsettlers/settlers-remake","homepage":"http://www.settlers-android-clone.com","size":298000,"stargazers_count":86,"watchers_count":86,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":79,"forks":38,"open_issues":79,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313"},"html":{"href":"https://github.com/jsettlers/settlers-remake/pull/313"},"issue":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/issues/313"},"comments":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/jsettlers/settlers-remake/statuses/dfeefafc646c52d972848455bef4c1784f7a780b"}}}}