{"action":"created","comment":{"url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/comments/42099513","id":42099513,"diff_hunk":"@@ -102,56 +61,48 @@ public LoggerSetScreen(ResourcesWrapper res, GameContainer container) throws Sli\n      */\n     public void show(Graphics graphics, GameContainer container, Input input,\n                      OptionsState optionsState) {\n-        graphics.setColor(Color.yellow);\n+\n         graphics.setAntiAlias(true);\n-        Color color = new Color(0f, 0f, 0f, 0.5f);\n-        graphics.setColor(color);\n+        graphics.setColor(new Color(0f, 0f, 0f, 0.5f));\n         graphics.fillRect(0, 0, container.getWidth(), container.getHeight());\n-        typeFont.drawString(60, 80, critical, Color.yellow);\n-        typeFont.drawString(60, 130, error, Color.yellow);\n-        typeFont.drawString(60, 180, warning, Color.yellow);\n-        typeFont.drawString(60, 230, debug, Color.yellow);\n-        typeFont.drawString(60, 280, verbose, Color.yellow);\n-        typeFont.drawString(60, 330, cancel, Color.red);\n+\n+        renderText(60, 80);\n \n         if (input.isMousePressed(Input.MOUSE_LEFT_BUTTON)) {\n-            if (overCan.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has cancelled setting the logger\");\n-                optionsState.toggleLoggerSet();\n-            }\n-            if (overCrit.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has set the logger to critical\");\n-                Game.LOGGER.setSeverity(LogSeverity.CRITICAL);\n-                optionsState.toggleLoggerSet();\n-            }\n-            if (overErr.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has set the logger to error\");\n-                Game.LOGGER.setSeverity(LogSeverity.ERROR);\n-                optionsState.toggleLoggerSet();\n-            }\n-            if (overWarn.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has set the logger to warning\");\n-                Game.LOGGER.setSeverity(LogSeverity.WARNING);\n-                optionsState.toggleLoggerSet();\n-            }\n-            if (overDeb.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has set the logger to debug\");\n-                Game.LOGGER.setSeverity(LogSeverity.DEBUG);\n-                optionsState.toggleLoggerSet();\n+            for (int i = 0; i < areas.length; i++) {\n+                if (areas[i].isMouseOver()) {\n+                    Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n+                            \"Player has set the logger to \" + text[i]);\n+                    Game.LOGGER.setSeverity(severities[i]);\n+                    optionsState.toggleLoggerSet();\n+                }\n             }\n+        }\n+    }\n \n-            if (overVerb.isMouseOver()) {\n-                Game.LOGGER.log(LogSeverity.DEBUG, \"LoggerSetScreen\",\n-                        \"Player has set the logger to verbose\");\n-                Game.LOGGER.setSeverity(LogSeverity.VERBOSE);\n-                optionsState.toggleLoggerSet();\n-            }\n+    /**\n+     * Renders all the buttons.\n+     *\n+     * @param renderCoordX\n+     *                  the x coordinate to use\n+     * @param renderCoordY\n+     *                  the first y coordinate to use\n+     */\n+    public void renderText(float renderCoordX, float renderCoordY) {\n+        for (int i = 0; i < text.length; i++) {","path":"src/main/java/nl/tudelft/semgroup4/LoggerSetScreen.java","position":178,"original_position":178,"commit_id":"e44907c185b6ea122ee3eeb824e97eae87633d5d","original_commit_id":"e44907c185b6ea122ee3eeb824e97eae87633d5d","user":{"login":"cathmer4","id":10548668,"avatar_url":"https://avatars.githubusercontent.com/u/10548668?v=3","gravatar_id":"","url":"https://api.github.com/users/cathmer4","html_url":"https://github.com/cathmer4","followers_url":"https://api.github.com/users/cathmer4/followers","following_url":"https://api.github.com/users/cathmer4/following{/other_user}","gists_url":"https://api.github.com/users/cathmer4/gists{/gist_id}","starred_url":"https://api.github.com/users/cathmer4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cathmer4/subscriptions","organizations_url":"https://api.github.com/users/cathmer4/orgs","repos_url":"https://api.github.com/users/cathmer4/repos","events_url":"https://api.github.com/users/cathmer4/events{/privacy}","received_events_url":"https://api.github.com/users/cathmer4/received_events","type":"User","site_admin":false},"body":"This method can be made private.","created_at":"2015-10-15T09:13:07Z","updated_at":"2015-10-15T09:13:07Z","html_url":"https://github.com/Pathemeous/sem-group-4/pull/177#discussion_r42099513","pull_request_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177","_links":{"self":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/comments/42099513"},"html":{"href":"https://github.com/Pathemeous/sem-group-4/pull/177#discussion_r42099513"},"pull_request":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177"}}},"pull_request":{"url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177","id":47712691,"html_url":"https://github.com/Pathemeous/sem-group-4/pull/177","diff_url":"https://github.com/Pathemeous/sem-group-4/pull/177.diff","patch_url":"https://github.com/Pathemeous/sem-group-4/pull/177.patch","issue_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/177","number":177,"state":"open","locked":false,"title":"Logger set screen refactor","user":{"login":"BCrlrd","id":9715308,"avatar_url":"https://avatars.githubusercontent.com/u/9715308?v=3","gravatar_id":"","url":"https://api.github.com/users/BCrlrd","html_url":"https://github.com/BCrlrd","followers_url":"https://api.github.com/users/BCrlrd/followers","following_url":"https://api.github.com/users/BCrlrd/following{/other_user}","gists_url":"https://api.github.com/users/BCrlrd/gists{/gist_id}","starred_url":"https://api.github.com/users/BCrlrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BCrlrd/subscriptions","organizations_url":"https://api.github.com/users/BCrlrd/orgs","repos_url":"https://api.github.com/users/BCrlrd/repos","events_url":"https://api.github.com/users/BCrlrd/events{/privacy}","received_events_url":"https://api.github.com/users/BCrlrd/received_events","type":"User","site_admin":false},"body":"This refactors LoggerSetScreen.\r\n\r\nFor some reason I can't reach 100% line coverage on LoggerSetScreen, even though all lines/branches have been triggered. If anyone has any idea how to fix it, feel free to implement it or let me know.\r\n\r\n< testing, organisation","created_at":"2015-10-14T20:47:20Z","updated_at":"2015-10-15T09:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4205188cabe74dc8b940af5e616320a82ffecc56","assignee":{"login":"BCrlrd","id":9715308,"avatar_url":"https://avatars.githubusercontent.com/u/9715308?v=3","gravatar_id":"","url":"https://api.github.com/users/BCrlrd","html_url":"https://github.com/BCrlrd","followers_url":"https://api.github.com/users/BCrlrd/followers","following_url":"https://api.github.com/users/BCrlrd/following{/other_user}","gists_url":"https://api.github.com/users/BCrlrd/gists{/gist_id}","starred_url":"https://api.github.com/users/BCrlrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BCrlrd/subscriptions","organizations_url":"https://api.github.com/users/BCrlrd/orgs","repos_url":"https://api.github.com/users/BCrlrd/repos","events_url":"https://api.github.com/users/BCrlrd/events{/privacy}","received_events_url":"https://api.github.com/users/BCrlrd/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Pathemeous/sem-group-4/milestones/1","html_url":"https://github.com/Pathemeous/sem-group-4/milestones/1.4","labels_url":"https://api.github.com/repos/Pathemeous/sem-group-4/milestones/1/labels","id":1350665,"number":1,"title":"1.4","description":"Release 1.4 for Assignment 4","creator":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":3,"state":"open","created_at":"2015-10-12T11:22:52Z","updated_at":"2015-10-15T09:03:13Z","due_on":"2015-10-15T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177/commits","review_comments_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177/comments","review_comment_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/177/comments","statuses_url":"https://api.github.com/repos/Pathemeous/sem-group-4/statuses/e44907c185b6ea122ee3eeb824e97eae87633d5d","head":{"label":"Pathemeous:loggerSetScreenRefactor","ref":"loggerSetScreenRefactor","sha":"e44907c185b6ea122ee3eeb824e97eae87633d5d","user":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"repo":{"id":41729036,"name":"sem-group-4","full_name":"Pathemeous/sem-group-4","owner":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pathemeous/sem-group-4","description":"A Java clone of Bubble Trouble made by Group 4 for the course Software Engineering Methods 2015-2016, as part of the bachelor Computer Science at the Delft University of Technology","fork":false,"url":"https://api.github.com/repos/Pathemeous/sem-group-4","forks_url":"https://api.github.com/repos/Pathemeous/sem-group-4/forks","keys_url":"https://api.github.com/repos/Pathemeous/sem-group-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pathemeous/sem-group-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pathemeous/sem-group-4/teams","hooks_url":"https://api.github.com/repos/Pathemeous/sem-group-4/hooks","issue_events_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/events{/number}","events_url":"https://api.github.com/repos/Pathemeous/sem-group-4/events","assignees_url":"https://api.github.com/repos/Pathemeous/sem-group-4/assignees{/user}","branches_url":"https://api.github.com/repos/Pathemeous/sem-group-4/branches{/branch}","tags_url":"https://api.github.com/repos/Pathemeous/sem-group-4/tags","blobs_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pathemeous/sem-group-4/statuses/{sha}","languages_url":"https://api.github.com/repos/Pathemeous/sem-group-4/languages","stargazers_url":"https://api.github.com/repos/Pathemeous/sem-group-4/stargazers","contributors_url":"https://api.github.com/repos/Pathemeous/sem-group-4/contributors","subscribers_url":"https://api.github.com/repos/Pathemeous/sem-group-4/subscribers","subscription_url":"https://api.github.com/repos/Pathemeous/sem-group-4/subscription","commits_url":"https://api.github.com/repos/Pathemeous/sem-group-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pathemeous/sem-group-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pathemeous/sem-group-4/contents/{+path}","compare_url":"https://api.github.com/repos/Pathemeous/sem-group-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pathemeous/sem-group-4/merges","archive_url":"https://api.github.com/repos/Pathemeous/sem-group-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pathemeous/sem-group-4/downloads","issues_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues{/number}","pulls_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls{/number}","milestones_url":"https://api.github.com/repos/Pathemeous/sem-group-4/milestones{/number}","notifications_url":"https://api.github.com/repos/Pathemeous/sem-group-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pathemeous/sem-group-4/labels{/name}","releases_url":"https://api.github.com/repos/Pathemeous/sem-group-4/releases{/id}","created_at":"2015-09-01T09:18:05Z","updated_at":"2015-09-11T13:33:41Z","pushed_at":"2015-10-15T09:03:16Z","git_url":"git://github.com/Pathemeous/sem-group-4.git","ssh_url":"git@github.com:Pathemeous/sem-group-4.git","clone_url":"https://github.com/Pathemeous/sem-group-4.git","svn_url":"https://github.com/Pathemeous/sem-group-4","homepage":"","size":10640,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"Pathemeous:development","ref":"development","sha":"f1c579955f16e0e30b0717be8011ff6c3894270f","user":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"repo":{"id":41729036,"name":"sem-group-4","full_name":"Pathemeous/sem-group-4","owner":{"login":"Pathemeous","id":9341897,"avatar_url":"https://avatars.githubusercontent.com/u/9341897?v=3","gravatar_id":"","url":"https://api.github.com/users/Pathemeous","html_url":"https://github.com/Pathemeous","followers_url":"https://api.github.com/users/Pathemeous/followers","following_url":"https://api.github.com/users/Pathemeous/following{/other_user}","gists_url":"https://api.github.com/users/Pathemeous/gists{/gist_id}","starred_url":"https://api.github.com/users/Pathemeous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pathemeous/subscriptions","organizations_url":"https://api.github.com/users/Pathemeous/orgs","repos_url":"https://api.github.com/users/Pathemeous/repos","events_url":"https://api.github.com/users/Pathemeous/events{/privacy}","received_events_url":"https://api.github.com/users/Pathemeous/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Pathemeous/sem-group-4","description":"A Java clone of Bubble Trouble made by Group 4 for the course Software Engineering Methods 2015-2016, as part of the bachelor Computer Science at the Delft University of Technology","fork":false,"url":"https://api.github.com/repos/Pathemeous/sem-group-4","forks_url":"https://api.github.com/repos/Pathemeous/sem-group-4/forks","keys_url":"https://api.github.com/repos/Pathemeous/sem-group-4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pathemeous/sem-group-4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pathemeous/sem-group-4/teams","hooks_url":"https://api.github.com/repos/Pathemeous/sem-group-4/hooks","issue_events_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/events{/number}","events_url":"https://api.github.com/repos/Pathemeous/sem-group-4/events","assignees_url":"https://api.github.com/repos/Pathemeous/sem-group-4/assignees{/user}","branches_url":"https://api.github.com/repos/Pathemeous/sem-group-4/branches{/branch}","tags_url":"https://api.github.com/repos/Pathemeous/sem-group-4/tags","blobs_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pathemeous/sem-group-4/statuses/{sha}","languages_url":"https://api.github.com/repos/Pathemeous/sem-group-4/languages","stargazers_url":"https://api.github.com/repos/Pathemeous/sem-group-4/stargazers","contributors_url":"https://api.github.com/repos/Pathemeous/sem-group-4/contributors","subscribers_url":"https://api.github.com/repos/Pathemeous/sem-group-4/subscribers","subscription_url":"https://api.github.com/repos/Pathemeous/sem-group-4/subscription","commits_url":"https://api.github.com/repos/Pathemeous/sem-group-4/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pathemeous/sem-group-4/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pathemeous/sem-group-4/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pathemeous/sem-group-4/contents/{+path}","compare_url":"https://api.github.com/repos/Pathemeous/sem-group-4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pathemeous/sem-group-4/merges","archive_url":"https://api.github.com/repos/Pathemeous/sem-group-4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pathemeous/sem-group-4/downloads","issues_url":"https://api.github.com/repos/Pathemeous/sem-group-4/issues{/number}","pulls_url":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls{/number}","milestones_url":"https://api.github.com/repos/Pathemeous/sem-group-4/milestones{/number}","notifications_url":"https://api.github.com/repos/Pathemeous/sem-group-4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pathemeous/sem-group-4/labels{/name}","releases_url":"https://api.github.com/repos/Pathemeous/sem-group-4/releases{/id}","created_at":"2015-09-01T09:18:05Z","updated_at":"2015-09-11T13:33:41Z","pushed_at":"2015-10-15T09:03:16Z","git_url":"git://github.com/Pathemeous/sem-group-4.git","ssh_url":"git@github.com:Pathemeous/sem-group-4.git","clone_url":"https://github.com/Pathemeous/sem-group-4.git","svn_url":"https://github.com/Pathemeous/sem-group-4","homepage":"","size":10640,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177"},"html":{"href":"https://github.com/Pathemeous/sem-group-4/pull/177"},"issue":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/177"},"comments":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/Pathemeous/sem-group-4/statuses/e44907c185b6ea122ee3eeb824e97eae87633d5d"}}}}