{"action":"created","comment":{"url":"https://api.github.com/repos/ppy/osu/pulls/comments/85096197","pull_request_review_id":5830680,"id":85096197,"diff_hunk":"@@ -0,0 +1,246 @@\n+//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.\n+//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE\n+\n+using System;\n+using osu.Framework.Graphics;\n+using osu.Framework.Graphics.Containers;\n+using osu.Framework.Graphics.Sprites;\n+using osu.Game.Graphics;\n+using osu.Game.Beatmaps;\n+using osu.Game.Database;\n+using osu.Framework.Graphics.Primitives;\n+using OpenTK;\n+using System.Linq;\n+using osu.Framework.Graphics.Transformations;\n+using osu.Framework.Input;\n+using OpenTK.Graphics;\n+using osu.Game.Beatmaps.IO;\n+using osu.Framework.Graphics.Textures;\n+using System.Threading.Tasks;\n+\n+namespace osu.Game.GameModes.Play\n+{\n+    class BeatmapGroup : Container\n+    {\n+        private const float collapsedAlpha = 0.5f;\n+        private const float collapsedWidth = 0.8f;\n+        \n+        private BeatmapInfo selectedBeatmap;\n+        public BeatmapInfo SelectedBeatmap\n+        {\n+            get { return selectedBeatmap; }\n+            set\n+            {\n+                selectedBeatmap = value;\n+            }\n+        }\n+\n+        public event Action<BeatmapSetInfo> SetSelected;\n+        public event Action<BeatmapSetInfo, BeatmapInfo> BeatmapSelected;\n+        public BeatmapSetInfo BeatmapSet;\n+        private BeatmapSetBox setBox;\n+        private FlowContainer topContainer;\n+        private FlowContainer difficulties;\n+        private bool collapsed;\n+        public bool Collapsed\n+        {\n+            get { return collapsed; }\n+            set\n+            {\n+                if (collapsed == value)\n+                    return;\n+                collapsed = value;\n+                this.ClearTransformations();\n+                const float uncollapsedAlpha = 1;\n+                Transforms.Add(new TransformAlpha(Clock)","path":"osu.Game/GameModes/Play/BeatmapGroup.cs","position":55,"original_position":55,"commit_id":"7ca5bf951c46af2c77f3f1efeea3938e737a672b","original_commit_id":"7ca5bf951c46af2c77f3f1efeea3938e737a672b","user":{"login":"peppy","id":191335,"avatar_url":"https://avatars.githubusercontent.com/u/191335?v=3","gravatar_id":"","url":"https://api.github.com/users/peppy","html_url":"https://github.com/peppy","followers_url":"https://api.github.com/users/peppy/followers","following_url":"https://api.github.com/users/peppy/following{/other_user}","gists_url":"https://api.github.com/users/peppy/gists{/gist_id}","starred_url":"https://api.github.com/users/peppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peppy/subscriptions","organizations_url":"https://api.github.com/users/peppy/orgs","repos_url":"https://api.github.com/users/peppy/repos","events_url":"https://api.github.com/users/peppy/events{/privacy}","received_events_url":"https://api.github.com/users/peppy/received_events","type":"User","site_admin":false},"body":"`FadeTo(collapsed ? collapsedAlpha : uncollapsedAlpha, 250);`","created_at":"2016-10-26T10:48:20Z","updated_at":"2016-10-26T10:48:20Z","html_url":"https://github.com/ppy/osu/pull/61#discussion_r85096197","pull_request_url":"https://api.github.com/repos/ppy/osu/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/ppy/osu/pulls/comments/85096197"},"html":{"href":"https://github.com/ppy/osu/pull/61#discussion_r85096197"},"pull_request":{"href":"https://api.github.com/repos/ppy/osu/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/ppy/osu/pulls/61","id":88879674,"html_url":"https://github.com/ppy/osu/pull/61","diff_url":"https://github.com/ppy/osu/pull/61.diff","patch_url":"https://github.com/ppy/osu/pull/61.patch","issue_url":"https://api.github.com/repos/ppy/osu/issues/61","number":61,"state":"open","locked":false,"title":"Song select","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"body":"![](https://sr.ht/0Xtf.png)","created_at":"2016-10-11T17:54:31Z","updated_at":"2016-10-26T10:48:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0a61351fa503979cc298e5533041245315fd3ed","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ppy/osu/pulls/61/commits","review_comments_url":"https://api.github.com/repos/ppy/osu/pulls/61/comments","review_comment_url":"https://api.github.com/repos/ppy/osu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ppy/osu/issues/61/comments","statuses_url":"https://api.github.com/repos/ppy/osu/statuses/7ca5bf951c46af2c77f3f1efeea3938e737a672b","head":{"label":"SirCmpwn:song-select","ref":"song-select","sha":"7ca5bf951c46af2c77f3f1efeea3938e737a672b","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"repo":{"id":69979171,"name":"osu","full_name":"SirCmpwn/osu","owner":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SirCmpwn/osu","description":"rhythm is just a *click* away!","fork":true,"url":"https://api.github.com/repos/SirCmpwn/osu","forks_url":"https://api.github.com/repos/SirCmpwn/osu/forks","keys_url":"https://api.github.com/repos/SirCmpwn/osu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SirCmpwn/osu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SirCmpwn/osu/teams","hooks_url":"https://api.github.com/repos/SirCmpwn/osu/hooks","issue_events_url":"https://api.github.com/repos/SirCmpwn/osu/issues/events{/number}","events_url":"https://api.github.com/repos/SirCmpwn/osu/events","assignees_url":"https://api.github.com/repos/SirCmpwn/osu/assignees{/user}","branches_url":"https://api.github.com/repos/SirCmpwn/osu/branches{/branch}","tags_url":"https://api.github.com/repos/SirCmpwn/osu/tags","blobs_url":"https://api.github.com/repos/SirCmpwn/osu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SirCmpwn/osu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SirCmpwn/osu/git/refs{/sha}","trees_url":"https://api.github.com/repos/SirCmpwn/osu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SirCmpwn/osu/statuses/{sha}","languages_url":"https://api.github.com/repos/SirCmpwn/osu/languages","stargazers_url":"https://api.github.com/repos/SirCmpwn/osu/stargazers","contributors_url":"https://api.github.com/repos/SirCmpwn/osu/contributors","subscribers_url":"https://api.github.com/repos/SirCmpwn/osu/subscribers","subscription_url":"https://api.github.com/repos/SirCmpwn/osu/subscription","commits_url":"https://api.github.com/repos/SirCmpwn/osu/commits{/sha}","git_commits_url":"https://api.github.com/repos/SirCmpwn/osu/git/commits{/sha}","comments_url":"https://api.github.com/repos/SirCmpwn/osu/comments{/number}","issue_comment_url":"https://api.github.com/repos/SirCmpwn/osu/issues/comments{/number}","contents_url":"https://api.github.com/repos/SirCmpwn/osu/contents/{+path}","compare_url":"https://api.github.com/repos/SirCmpwn/osu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SirCmpwn/osu/merges","archive_url":"https://api.github.com/repos/SirCmpwn/osu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SirCmpwn/osu/downloads","issues_url":"https://api.github.com/repos/SirCmpwn/osu/issues{/number}","pulls_url":"https://api.github.com/repos/SirCmpwn/osu/pulls{/number}","milestones_url":"https://api.github.com/repos/SirCmpwn/osu/milestones{/number}","notifications_url":"https://api.github.com/repos/SirCmpwn/osu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SirCmpwn/osu/labels{/name}","releases_url":"https://api.github.com/repos/SirCmpwn/osu/releases{/id}","deployments_url":"https://api.github.com/repos/SirCmpwn/osu/deployments","created_at":"2016-10-04T15:32:19Z","updated_at":"2016-10-04T15:32:20Z","pushed_at":"2016-10-26T01:18:29Z","git_url":"git://github.com/SirCmpwn/osu.git","ssh_url":"git@github.com:SirCmpwn/osu.git","clone_url":"https://github.com/SirCmpwn/osu.git","svn_url":"https://github.com/SirCmpwn/osu","homepage":"https://osu.ppy.sh","size":6724,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ppy:master","ref":"master","sha":"2ef516a6fac4b56ce95415023d9c75a3a6253a15","user":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"repo":{"id":22456440,"name":"osu","full_name":"ppy/osu","owner":{"login":"ppy","id":995763,"avatar_url":"https://avatars.githubusercontent.com/u/995763?v=3","gravatar_id":"","url":"https://api.github.com/users/ppy","html_url":"https://github.com/ppy","followers_url":"https://api.github.com/users/ppy/followers","following_url":"https://api.github.com/users/ppy/following{/other_user}","gists_url":"https://api.github.com/users/ppy/gists{/gist_id}","starred_url":"https://api.github.com/users/ppy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppy/subscriptions","organizations_url":"https://api.github.com/users/ppy/orgs","repos_url":"https://api.github.com/users/ppy/repos","events_url":"https://api.github.com/users/ppy/events{/privacy}","received_events_url":"https://api.github.com/users/ppy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ppy/osu","description":"rhythm is just a *click* away!","fork":false,"url":"https://api.github.com/repos/ppy/osu","forks_url":"https://api.github.com/repos/ppy/osu/forks","keys_url":"https://api.github.com/repos/ppy/osu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppy/osu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppy/osu/teams","hooks_url":"https://api.github.com/repos/ppy/osu/hooks","issue_events_url":"https://api.github.com/repos/ppy/osu/issues/events{/number}","events_url":"https://api.github.com/repos/ppy/osu/events","assignees_url":"https://api.github.com/repos/ppy/osu/assignees{/user}","branches_url":"https://api.github.com/repos/ppy/osu/branches{/branch}","tags_url":"https://api.github.com/repos/ppy/osu/tags","blobs_url":"https://api.github.com/repos/ppy/osu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppy/osu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppy/osu/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppy/osu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppy/osu/statuses/{sha}","languages_url":"https://api.github.com/repos/ppy/osu/languages","stargazers_url":"https://api.github.com/repos/ppy/osu/stargazers","contributors_url":"https://api.github.com/repos/ppy/osu/contributors","subscribers_url":"https://api.github.com/repos/ppy/osu/subscribers","subscription_url":"https://api.github.com/repos/ppy/osu/subscription","commits_url":"https://api.github.com/repos/ppy/osu/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppy/osu/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppy/osu/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppy/osu/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppy/osu/contents/{+path}","compare_url":"https://api.github.com/repos/ppy/osu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppy/osu/merges","archive_url":"https://api.github.com/repos/ppy/osu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppy/osu/downloads","issues_url":"https://api.github.com/repos/ppy/osu/issues{/number}","pulls_url":"https://api.github.com/repos/ppy/osu/pulls{/number}","milestones_url":"https://api.github.com/repos/ppy/osu/milestones{/number}","notifications_url":"https://api.github.com/repos/ppy/osu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppy/osu/labels{/name}","releases_url":"https://api.github.com/repos/ppy/osu/releases{/id}","deployments_url":"https://api.github.com/repos/ppy/osu/deployments","created_at":"2014-07-31T04:26:30Z","updated_at":"2016-10-25T02:39:47Z","pushed_at":"2016-10-26T10:13:00Z","git_url":"git://github.com/ppy/osu.git","ssh_url":"git@github.com:ppy/osu.git","clone_url":"https://github.com/ppy/osu.git","svn_url":"https://github.com/ppy/osu","homepage":"https://osu.ppy.sh","size":16907,"stargazers_count":463,"watchers_count":463,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":13,"forks":89,"open_issues":13,"watchers":463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ppy/osu/pulls/61"},"html":{"href":"https://github.com/ppy/osu/pull/61"},"issue":{"href":"https://api.github.com/repos/ppy/osu/issues/61"},"comments":{"href":"https://api.github.com/repos/ppy/osu/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/ppy/osu/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/ppy/osu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ppy/osu/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/ppy/osu/statuses/7ca5bf951c46af2c77f3f1efeea3938e737a672b"}}}}
{"actor":{"display_login":"peppy"}}